Skip to content

Commit 5c9be49

Browse files
vansh kumar kushwahavansh kumar kushwaha
vansh kumar kushwaha
authored and
vansh kumar kushwaha
committed
feat(index.d.ts): export FormState type
This is usefull when we are expecting the formState as a prop from other component tjinauyeung#181
1 parent 7df1b1d commit 5c9be49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type TextareaProperties = {
2929
name: string;
3030
} & svelte.JSX.HTMLProps<HTMLTextAreaElement>;
3131

32-
type FormState<Inf = Record<string, any>> = {
32+
export type FormState<Inf = Record<string, any>> = {
3333
form: Writable<Inf>;
3434
errors: Writable<Record<keyof Inf, string>>;
3535
touched: Writable<Record<keyof Inf, boolean>>;

0 commit comments

Comments
 (0)