2024-10-workshop-talk-five-.../snippets/external.ts
Norman Köhring 27a1deac0b slides
2024-10-04 15:45:04 +02:00

12 lines
273 B
TypeScript

/* eslint-disable no-console */
// #region snippet
// Inside ./snippets/external.ts
export function emptyArray<T>(length: number) {
return Array.from<T>({ length })
}
// #endregion snippet
export function sayHello() {
console.log('Hello from snippets/external.ts')
}