Skip to content

Commit 552544f

Browse files
committed
Update types
1 parent bdedb6d commit 552544f

3 files changed

Lines changed: 1 addition & 15 deletions

File tree

packages/kit/src/exports/public.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
AdapterEntry,
77
CspDirectives,
88
HttpMethod,
9-
IsAny,
109
Logger,
1110
MaybePromise,
1211
Prerendered,

packages/kit/src/types/private.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,5 +241,3 @@ export interface RouteSegment {
241241
}
242242

243243
export type TrailingSlash = 'never' | 'always' | 'ignore';
244-
245-
export type IsAny<T> = 0 extends 1 & T ? true : false;

packages/kit/types/index.d.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,16 +2034,7 @@ declare module '@sveltejs/kit' {
20342034
/** The number of pending submissions */
20352035
get pending(): number;
20362036
/** Access form fields using object notation */
2037-
fields: IsAny<Input> extends true
2038-
? RecursiveFormFields
2039-
: Input extends void
2040-
? {
2041-
/** Validation issues, if any */
2042-
issues(): RemoteFormIssue[] | undefined;
2043-
/** Validation issues belonging to this or any of the fields that belong to it, if any */
2044-
allIssues(): RemoteFormIssue[] | undefined;
2045-
}
2046-
: RemoteFormFields<Input>;
2037+
fields: RemoteFormFields<Input>;
20472038
/** Spread this onto a `<button>` or `<input type="submit">` */
20482039
buttonProps: {
20492040
type: 'submit';
@@ -2385,8 +2376,6 @@ declare module '@sveltejs/kit' {
23852376
}
23862377

23872378
type TrailingSlash = 'never' | 'always' | 'ignore';
2388-
2389-
type IsAny<T> = 0 extends 1 & T ? true : false;
23902379
interface Asset {
23912380
file: string;
23922381
size: number;

0 commit comments

Comments
 (0)