Skip to content

Commit c48bc58

Browse files
committed
[sveltekit] Fix type error
1 parent 5d6fba1 commit c48bc58

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/sveltekit/src/lib/client/use-form.svelte.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export type AdditionalPropertyKeyValidationError =
7777

7878
export type SvelteKitFormOptions<ActionData, V, E, SendSchema extends boolean> = Omit<
7979
UseFormOptions2<V, E>,
80-
'onSubmit' | (SendSchema extends true ? 'schema' : never)
80+
'onSubmit' | 'schema'
8181
> &
8282
SveltekitMutationOptions<ActionData, V> & {
8383
additionalPropertyKeyValidationError?: AdditionalPropertyKeyValidationError;
@@ -141,10 +141,7 @@ export function useSvelteKitForm<
141141
const mutation = useSvelteKitMutation<Meta['__actionData'], V>(options);
142142

143143
const separators = [
144-
//@ts-expect-error TODO: This is related to passing `SendDataFromValidatedFormData<VFD, E>`
145-
// to `SvelteKitFormOptions`.
146144
options.idSeparator ?? DEFAULT_ID_SEPARATOR,
147-
//@ts-expect-error also
148145
options.pseudoIdSeparator ?? DEFAULT_PSEUDO_ID_SEPARATOR
149146
];
150147
const additionalPropertyKeyValidationError = $derived(

0 commit comments

Comments
 (0)