ue/github/slidev/snippets/external.ts

13 lines
273 B
TypeScript
Raw Normal View History

2024-06-03 14:47:02 +00:00
/* 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')
}