prez-a11y/snippets/external.ts

13 lines
273 B
TypeScript
Raw Normal View History

2024-12-12 15:22:05 +01: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')
}