knowledge/talks/learn-anything-future-april-24/snippets/external.ts

13 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')
}