@formisch/svelte 0.7.0 → 0.7.1
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.
- package/README.md +1 -1
- package/dist/core/index.svelte.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Every form starts with the `createForm` function. It initializes your form's sto
|
|
|
30
30
|
const loginForm = createForm({ schema: LoginSchema });
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
|
-
<Form of={loginForm} onsubmit={(output) => console.log(output)}>
|
|
33
|
+
<Form of={loginForm} onsubmit={(output, event) => console.log(output)}>
|
|
34
34
|
<Field of={loginForm} path={['email']}>
|
|
35
35
|
{#snippet children(field)}
|
|
36
36
|
<div>
|
|
@@ -212,11 +212,11 @@ type MaybePromise<TValue> = TValue | Promise<TValue>;
|
|
|
212
212
|
/**
|
|
213
213
|
* Makes all properties deeply optional.
|
|
214
214
|
*/
|
|
215
|
-
type DeepPartial<TValue> = TValue extends
|
|
215
|
+
type DeepPartial<TValue> = TValue extends Record<PropertyKey, unknown> | readonly unknown[] ? { [Key in keyof TValue]?: DeepPartial<TValue[Key]> | undefined } : TValue | undefined;
|
|
216
216
|
/**
|
|
217
217
|
* Makes all value properties optional.
|
|
218
218
|
*/
|
|
219
|
-
type PartialValues<TValue> = TValue extends
|
|
219
|
+
type PartialValues<TValue> = TValue extends Record<PropertyKey, unknown> | readonly unknown[] ? { [Key in keyof TValue]: PartialValues<TValue[Key]> } : TValue | undefined;
|
|
220
220
|
//#endregion
|
|
221
221
|
//#region src/types/form.d.ts
|
|
222
222
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formisch/svelte",
|
|
3
3
|
"description": "The modular and type-safe form library for Svelte",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Fabian Hiller",
|
|
7
7
|
"homepage": "https://formisch.dev",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"typescript": "^5.9.2",
|
|
51
51
|
"valibot": "^1.2.0",
|
|
52
52
|
"vite": "^7.1.5",
|
|
53
|
-
"@formisch/core": "0.6.
|
|
53
|
+
"@formisch/core": "0.6.1",
|
|
54
54
|
"@formisch/eslint-config": "0.1.0",
|
|
55
55
|
"@formisch/methods": "0.7.0"
|
|
56
56
|
},
|