Skip to content

Commit 263206d

Browse files
committed
regenerate
1 parent fa818ca commit 263206d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/kit/types/index.d.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,13 +1787,7 @@ declare module '@sveltejs/kit' {
17871787
}
17881788

17891789
// If T is unknown or has an index signature, the types below will recurse indefinitely and create giant unions that TS can't handle
1790-
type WillRecurseIndefinitely<T> = unknown extends T
1791-
? true
1792-
: string extends keyof T
1793-
? true
1794-
: number extends keyof T
1795-
? true
1796-
: false;
1790+
type WillRecurseIndefinitely<T> = unknown extends T ? true : string extends keyof T ? true : false;
17971791

17981792
// Helper type to convert union to intersection
17991793
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void
@@ -1842,8 +1836,6 @@ declare module '@sveltejs/kit' {
18421836
>;
18431837
}[keyof T];
18441838

1845-
type X = FlattenIssues<{ a: string }, ''>;
1846-
18471839
type FlattenKeys<T, Prefix extends string> = T extends string | number | boolean | null | undefined
18481840
? { [P in Prefix]: string }
18491841
: WillRecurseIndefinitely<T> extends true

0 commit comments

Comments
 (0)