ue/github/slidev/snippets/external.ts
2024-10-30 07:19:23 +09:00

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