Skip to content

Commit 95e676e

Browse files
committed
chore: fix lint errors
1 parent 55f77b8 commit 95e676e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/apidoc/diff.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ async function load(source: string): Promise<DocsApiDiffIndex> {
4747
*
4848
* @param entries The entries to get the keys from.
4949
*/
50-
function allKeys(...entries: Record<string, unknown>[]): Set<string> {
50+
function allKeys(
51+
...entries: ReadonlyArray<Record<string, unknown>>
52+
): Set<string> {
5153
return new Set(entries.map(Object.keys).flat());
5254
}
5355

scripts/apidoc/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type PageIndex = Page[];
99
export type PageAndDiff = Page & {
1010
diff: DocsApiDiff;
1111
};
12-
export type PageAndDiffIndex = Array<PageAndDiff>;
12+
export type PageAndDiffIndex = PageAndDiff[];
1313

1414
export interface DocsApiDiffIndex {
1515
/**

0 commit comments

Comments
 (0)