@tanstack/svelte-form 1.29.3 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,5 +21,6 @@ type AppFieldExtendedSvelteFormApi<TFormData, TOnMount extends undefined | FormV
|
|
|
21
21
|
};
|
|
22
22
|
export declare function createFormCreator<const TComponents extends Record<string, Component<any, any>>, const TFormComponents extends Record<string, Component<any, any>>>({ fieldComponents, formComponents, }: CreateFormRuneProps<TComponents, TFormComponents>): {
|
|
23
23
|
createAppForm: <TFormData, TOnMount extends undefined | FormValidateOrFn<TFormData>, TOnChange extends undefined | FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>, TSubmitMeta>(props: () => FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => AppFieldExtendedSvelteFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, TComponents, TFormComponents>;
|
|
24
|
+
getFormType: <TFormData, TOnMount extends undefined | FormValidateOrFn<TFormData>, TOnChange extends undefined | FormValidateOrFn<TFormData>, TOnChangeAsync extends undefined | FormAsyncValidateOrFn<TFormData>, TOnBlur extends undefined | FormValidateOrFn<TFormData>, TOnBlurAsync extends undefined | FormAsyncValidateOrFn<TFormData>, TOnSubmit extends undefined | FormValidateOrFn<TFormData>, TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>, TOnDynamic extends undefined | FormValidateOrFn<TFormData>, TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>, TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>, TSubmitMeta>(_formProps: FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => AppFieldExtendedSvelteFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, TComponents, TFormComponents>;
|
|
24
25
|
};
|
|
25
26
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/svelte-form",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.0",
|
|
4
4
|
"description": "Powerful, type-safe forms for Svelte.",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@tanstack/svelte-store": "^0.10.1",
|
|
35
|
-
"@tanstack/form-core": "1.
|
|
35
|
+
"@tanstack/form-core": "1.31.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@sveltejs/package": "^2.5.3",
|
|
@@ -267,7 +267,55 @@ export function createFormCreator<
|
|
|
267
267
|
return extendedForm
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
+
function getFormType<
|
|
271
|
+
TFormData,
|
|
272
|
+
TOnMount extends undefined | FormValidateOrFn<TFormData>,
|
|
273
|
+
TOnChange extends undefined | FormValidateOrFn<TFormData>,
|
|
274
|
+
TOnChangeAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
|
|
275
|
+
TOnBlur extends undefined | FormValidateOrFn<TFormData>,
|
|
276
|
+
TOnBlurAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
|
|
277
|
+
TOnSubmit extends undefined | FormValidateOrFn<TFormData>,
|
|
278
|
+
TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
|
|
279
|
+
TOnDynamic extends undefined | FormValidateOrFn<TFormData>,
|
|
280
|
+
TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>,
|
|
281
|
+
TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>,
|
|
282
|
+
TSubmitMeta,
|
|
283
|
+
>(
|
|
284
|
+
_formProps: FormOptions<
|
|
285
|
+
TFormData,
|
|
286
|
+
TOnMount,
|
|
287
|
+
TOnChange,
|
|
288
|
+
TOnChangeAsync,
|
|
289
|
+
TOnBlur,
|
|
290
|
+
TOnBlurAsync,
|
|
291
|
+
TOnSubmit,
|
|
292
|
+
TOnSubmitAsync,
|
|
293
|
+
TOnDynamic,
|
|
294
|
+
TOnDynamicAsync,
|
|
295
|
+
TOnServer,
|
|
296
|
+
TSubmitMeta
|
|
297
|
+
>,
|
|
298
|
+
): AppFieldExtendedSvelteFormApi<
|
|
299
|
+
TFormData,
|
|
300
|
+
TOnMount,
|
|
301
|
+
TOnChange,
|
|
302
|
+
TOnChangeAsync,
|
|
303
|
+
TOnBlur,
|
|
304
|
+
TOnBlurAsync,
|
|
305
|
+
TOnSubmit,
|
|
306
|
+
TOnSubmitAsync,
|
|
307
|
+
TOnDynamic,
|
|
308
|
+
TOnDynamicAsync,
|
|
309
|
+
TOnServer,
|
|
310
|
+
TSubmitMeta,
|
|
311
|
+
TComponents,
|
|
312
|
+
TFormComponents
|
|
313
|
+
> {
|
|
314
|
+
return undefined as never
|
|
315
|
+
}
|
|
316
|
+
|
|
270
317
|
return {
|
|
271
318
|
createAppForm,
|
|
319
|
+
getFormType,
|
|
272
320
|
}
|
|
273
321
|
}
|