Skip to content

Commit e9af37f

Browse files
committed
add symbol to ValidationError
1 parent f592ec4 commit e9af37f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/kit/types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ type OptionalUnion<
5151
A extends keyof U = U extends U ? keyof U : never
5252
> = U extends unknown ? { [P in Exclude<A, keyof U>]?: never } & U : never;
5353

54+
declare const sym: unique symbol;
5455
// Needs to be here, else ActionData will be resolved to unknown - probably because of "d.ts file imports .js file" in combination with allowJs
5556
export interface ValidationError<T extends Record<string, unknown> | undefined = undefined> {
57+
readonly [sym]: unknown;
5658
status: number;
5759
data: T;
5860
}

0 commit comments

Comments
 (0)