svelte-forms-lib
Advanced tools
Comparing version
@@ -14,3 +14,3 @@ /// <reference lib="svelte2tsx" /> | ||
type FieldProps = { | ||
type FieldProperties = { | ||
name: string; | ||
@@ -21,11 +21,11 @@ type?: string; | ||
type SelectProps = { | ||
type SelectProperties = { | ||
name: string; | ||
} & svelte.JSX.HTMLProps<HTMLSelectElement>; | ||
type ErrorProps = { | ||
type ErrorProperties = { | ||
name: string; | ||
} & svelte.JSX.HTMLProps<HTMLDivElement>; | ||
type TextareaProps = { | ||
type TextareaProperties = { | ||
name: string; | ||
@@ -63,3 +63,3 @@ } & svelte.JSX.HTMLProps<HTMLTextAreaElement>; | ||
declare function createForm<Inf = Record<string, any>>(formProps: { | ||
declare function createForm<Inf = Record<string, any>>(formProperties: { | ||
initialValues: Inf; | ||
@@ -80,3 +80,3 @@ onSubmit: (values: Inf) => any | Promise<any>; | ||
declare class Field extends SvelteComponentTyped< | ||
FieldProps, | ||
FieldProperties, | ||
Record<string, unknown>, | ||
@@ -87,3 +87,3 @@ Record<string, unknown> | ||
declare class Textarea extends SvelteComponentTyped< | ||
TextareaProps, | ||
TextareaProperties, | ||
Record<string, unknown>, | ||
@@ -94,3 +94,3 @@ Record<string, unknown> | ||
declare class Select extends SvelteComponentTyped< | ||
SelectProps, | ||
SelectProperties, | ||
Record<string, unknown>, | ||
@@ -101,3 +101,3 @@ {default: any} | ||
declare class ErrorMessage extends SvelteComponentTyped< | ||
ErrorProps, | ||
ErrorProperties, | ||
Record<string, unknown>, | ||
@@ -104,0 +104,0 @@ {default: any} |
{ | ||
"name": "svelte-forms-lib", | ||
"version": "1.10.10", | ||
"version": "2.0.0", | ||
"description": "Svelte forms lib - A lightweight library for managing forms in Svelte v3", | ||
@@ -5,0 +5,0 @@ "typings": "./lib/index.d.ts", |
101225
0.04%