diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/apidoc/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/apidoc/utils.ts b/scripts/apidoc/utils.ts index 7939adb1..f480c0b1 100644 --- a/scripts/apidoc/utils.ts +++ b/scripts/apidoc/utils.ts @@ -3,7 +3,7 @@ import { resolve } from 'node:path'; // Types export type Page = { text: string; link: string }; -export type PageIndex = Array<Page>; +export type PageIndex = Page[]; // Paths @@ -14,7 +14,7 @@ export const pathOutputDir = resolve(pathDocsDir, 'api'); // Functions export function mapByName<T extends { name: string }, V>( - input: Array<T>, + input: T[], valueExtractor: (item: T) => V ): Record<string, V> { return input.reduce( |
