diff options
| author | Shinigami <[email protected]> | 2023-02-01 14:04:18 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-01 14:04:18 +0100 |
| commit | 5b705d4b047640e91b690566d6e0fdbae17bb842 (patch) | |
| tree | a179a77cca1b72e2c730607def2786a5531b531f /scripts | |
| parent | be77179faf097383763eaa6414cf7b6a1a8b131a (diff) | |
| download | faker-5b705d4b047640e91b690566d6e0fdbae17bb842.tar.xz faker-5b705d4b047640e91b690566d6e0fdbae17bb842.zip | |
infra: configure lint rule array-type (#1793)
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( |
