Skip to content

Commit 66019ba

Browse files
authored
Merge pull request #146 from tjinauyeung/feat/improve-type-names
2 parents 682c300 + dc29738 commit 66019ba

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/index.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ export type FormProps<Inf = Record<string, unknown>> = {
1111
validationSchema?: ObjectSchema<any>;
1212
} & svelte.JSX.HTMLAttributes<HTMLFormElement>;
1313

14-
type FieldProps = {
14+
type FieldProperties = {
1515
name: string;
1616
type?: string;
1717
value?: string;
1818
} & svelte.JSX.HTMLProps<HTMLInputElement>;
1919

20-
type SelectProps = {
20+
type SelectProperties = {
2121
name: string;
2222
} & svelte.JSX.HTMLProps<HTMLSelectElement>;
2323

24-
type ErrorProps = {
24+
type ErrorProperties = {
2525
name: string;
2626
} & svelte.JSX.HTMLProps<HTMLDivElement>;
2727

28-
type TextareaProps = {
28+
type TextareaProperties = {
2929
name: string;
3030
} & svelte.JSX.HTMLProps<HTMLTextAreaElement>;
3131

@@ -58,7 +58,7 @@ type FormState<Inf = Record<string, any>> = {
5858
handleSubmit: (event: Event) => any;
5959
};
6060

61-
declare function createForm<Inf = Record<string, any>>(formProps: {
61+
declare function createForm<Inf = Record<string, any>>(formProperties: {
6262
initialValues: Inf;
6363
onSubmit: (values: Inf) => any | Promise<any>;
6464
validate?: (values: Inf) => any | undefined;
@@ -74,25 +74,25 @@ declare class Form extends SvelteComponentTyped<
7474
> {}
7575

7676
declare class Field extends SvelteComponentTyped<
77-
FieldProps,
77+
FieldProperties,
7878
Record<string, unknown>,
7979
Record<string, unknown>
8080
> {}
8181

8282
declare class Textarea extends SvelteComponentTyped<
83-
TextareaProps,
83+
TextareaProperties,
8484
Record<string, unknown>,
8585
Record<string, unknown>
8686
> {}
8787

8888
declare class Select extends SvelteComponentTyped<
89-
SelectProps,
89+
SelectProperties,
9090
Record<string, unknown>,
9191
{default: any}
9292
> {}
9393

9494
declare class ErrorMessage extends SvelteComponentTyped<
95-
ErrorProps,
95+
ErrorProperties,
9696
Record<string, unknown>,
9797
{default: any}
9898
> {}

0 commit comments

Comments
 (0)