diff --git a/packages/svelte-form/src/createField.svelte.ts b/packages/svelte-form/src/createField.svelte.ts index 7af842621..0e25747d2 100644 --- a/packages/svelte-form/src/createField.svelte.ts +++ b/packages/svelte-form/src/createField.svelte.ts @@ -41,7 +41,7 @@ export type CreateField< >, 'form' >, -) => () => FieldApi< +) => FieldApi< TParentData, TName, TFieldValidator, diff --git a/packages/svelte-form/src/createForm.svelte.ts b/packages/svelte-form/src/createForm.svelte.ts index 633afad51..e45a76c7d 100644 --- a/packages/svelte-form/src/createForm.svelte.ts +++ b/packages/svelte-form/src/createForm.svelte.ts @@ -29,6 +29,7 @@ export function createForm< // No clue right now how we do that extendedApi.Field = Field extendedApi.createField = (props) => + // TODO (43081j): type is excessively deep.. no clue why yet createField(() => { return { ...props(), form: api } })