Skip to content

Commit c66cab6

Browse files
committed
Options fix for SuperForm.form
1 parent 35a069e commit c66cab6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/client/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ type SuperFormEventList<T extends AnyZodObject, M> = {
206206
export type SuperForm<T extends ZodValidation<AnyZodObject>, M = any> = {
207207
form: {
208208
subscribe: Readable<z.infer<T>>['subscribe'];
209-
set(this: void, value: z.infer<T>, options: { taint?: boolean }): void;
209+
set(this: void, value: z.infer<T>, options?: { taint?: boolean }): void;
210210
update(
211211
this: void,
212212
updater: Updater<z.infer<T>>,
213-
options: { taint?: boolean }
213+
options?: { taint?: boolean }
214214
): void;
215215
};
216216
formId: Writable<string | undefined>;

0 commit comments

Comments
 (0)