@@ -3,7 +3,7 @@ import type {SvelteComponentTyped} from 'svelte';
33import type { Readable , Writable } from 'svelte/store' ;
44import type { ObjectSchema } from 'yup' ;
55
6- export type FormProps < Inf = Record < string , any > > = {
6+ export type FormProps < Inf = Record < string , unknown > > = {
77 context ?: FormState ;
88 initialValues ?: Inf ;
99 onSubmit ?: ( ( values : Inf ) => any ) | ( ( values : Inf ) => Promise < any > ) ;
@@ -54,7 +54,7 @@ type FormState<Inf = Record<string, any>> = {
5454 isValidating : boolean ;
5555 isModified : boolean ;
5656 } > ;
57- handleChange : ( ) => void ;
57+ handleChange : ( ) => any ;
5858 handleSubmit : ( ) => any ;
5959} ;
6060
@@ -67,25 +67,33 @@ declare function createForm<Inf = Record<string, any>>(formProps: {
6767
6868declare class Form extends SvelteComponentTyped <
6969 FormProps ,
70- { } ,
70+ Record < string , unknown > ,
7171 {
7272 default : FormState ;
7373 }
7474> { }
7575
76- declare class Field extends SvelteComponentTyped < FieldProps , { } , { } > { }
76+ declare class Field extends SvelteComponentTyped <
77+ FieldProps ,
78+ Record < string , unknown > ,
79+ Record < string , unknown >
80+ > { }
7781
78- declare class Textarea extends SvelteComponentTyped < TextareaProps , { } , { } > { }
82+ declare class Textarea extends SvelteComponentTyped <
83+ TextareaProps ,
84+ Record < string , unknown > ,
85+ Record < string , unknown >
86+ > { }
7987
8088declare class Select extends SvelteComponentTyped <
8189 SelectProps ,
82- { } ,
90+ Record < string , unknown > ,
8391 { default : any }
8492> { }
8593
8694declare class ErrorMessage extends SvelteComponentTyped <
8795 ErrorProps ,
88- { } ,
96+ Record < string , unknown > ,
8997 { default : any }
9098> { }
9199
0 commit comments