Skip to content

Commit

Permalink
fix(typescript definitions): replace manual svelte.JSX declaration wi…
Browse files Browse the repository at this point in the history
…th official svelte2tsx defs

fix #118
  • Loading branch information
larrybotha committed May 2, 2021
1 parent f846e04 commit c72a947
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 979 deletions.
7 changes: 4 additions & 3 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/// <reference path="svelte-jsx.d.ts" />
/// <reference lib="svelte2tsx" />
import type {SvelteComponentTyped} from 'svelte';
import type {Readable, Writable} from 'svelte/store';
import type {ObjectSchema} from 'yup';

export type FormProps<Inf = Record<string, any>> = {
initialValues: Inf;
onSubmit: ((values: Inf) => any) | ((values: Inf) => Promise<any>);
context?: FormState;
initialValues?: Inf;
onSubmit?: ((values: Inf) => any) | ((values: Inf) => Promise<any>);
validate?: (values: Inf) => any | undefined;
validationSchema?: ObjectSchema<any>;
} & svelte.JSX.HTMLAttributes<HTMLFormElement>;
Expand Down
Loading

0 comments on commit c72a947

Please sign in to comment.