svelte-forms-lib
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
/// <reference path="svelte-jsx.d.ts" /> | ||
/// <reference lib="svelte2tsx" /> | ||
import type {SvelteComponentTyped} from 'svelte'; | ||
@@ -7,4 +7,5 @@ import type {Readable, Writable} from 'svelte/store'; | ||
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; | ||
@@ -11,0 +12,0 @@ validationSchema?: ObjectSchema<any>; |
{ | ||
"name": "svelte-forms-lib", | ||
"version": "1.10.2", | ||
"version": "1.10.3", | ||
"description": "Svelte forms lib - A lightweight library for managing forms in Svelte v3", | ||
@@ -81,2 +81,3 @@ "typings": "./lib/index.d.ts", | ||
"svelte-preprocess": "^4.6.9", | ||
"svelte2tsx": "^0.1.189", | ||
"typescript": "^4.2.3", | ||
@@ -83,0 +84,0 @@ "yup": "0.32.8" |
98533
-25.43%40
2.56%15
-6.25%3012
-22.83%