Skip to content

Commit b4a6f25

Browse files
committed
fix
1 parent d924884 commit b4a6f25

File tree

1 file changed

+1
-1
lines changed
  • packages/kit/src/core/sync/write_types

1 file changed

+1
-1
lines changed

packages/kit/src/core/sync/write_types/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function update_types(config, routes, route, to_delete = new Set()) {
217217
`type OptionalUnion<U extends Record<string, any>, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude<A, keyof U>]?: never } & U : never;`,
218218

219219
// Re-export `Snapshot` from @sveltejs/kit — in future we could use this to infer <T> from the return type of `snapshot.capture`
220-
`export type Snapshot<T> = Kit.Snapshot<T>;`
220+
`export type Snapshot<T = any> = Kit.Snapshot<T>;`
221221
);
222222
}
223223

0 commit comments

Comments
 (0)