We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55f77b8 commit 95e676eCopy full SHA for 95e676e
scripts/apidoc/diff.ts
@@ -47,7 +47,9 @@ async function load(source: string): Promise<DocsApiDiffIndex> {
47
*
48
* @param entries The entries to get the keys from.
49
*/
50
-function allKeys(...entries: Record<string, unknown>[]): Set<string> {
+function allKeys(
51
+ ...entries: ReadonlyArray<Record<string, unknown>>
52
+): Set<string> {
53
return new Set(entries.map(Object.keys).flat());
54
}
55
scripts/apidoc/utils.ts
@@ -9,7 +9,7 @@ export type PageIndex = Page[];
9
export type PageAndDiff = Page & {
10
diff: DocsApiDiff;
11
};
12
-export type PageAndDiffIndex = Array<PageAndDiff>;
+export type PageAndDiffIndex = PageAndDiff[];
13
14
export interface DocsApiDiffIndex {
15
/**
0 commit comments