Skip to content

Commit 5ea7225

Browse files
author
Larry Botha
committed
style(index.d.ts): delint
1 parent e6f585e commit 5ea7225

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

lib/index.d.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type {SvelteComponentTyped} from 'svelte';
33
import type {Readable, Writable} from 'svelte/store';
44
import 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>);
@@ -67,25 +67,33 @@ declare function createForm<Inf = Record<string, any>>(formProps: {
6767

6868
declare 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

8088
declare class Select extends SvelteComponentTyped<
8189
SelectProps,
82-
{},
90+
Record<string, unknown>,
8391
{default: any}
8492
> {}
8593

8694
declare class ErrorMessage extends SvelteComponentTyped<
8795
ErrorProps,
88-
{},
96+
Record<string, unknown>,
8997
{default: any}
9098
> {}
9199

0 commit comments

Comments
 (0)