Skip to content

Commit 43aa84c

Browse files
committed
fix: return FieldApi directly
1 parent 5b87ca5 commit 43aa84c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/svelte-form/src/createField.svelte.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export type CreateField<
4141
>,
4242
'form'
4343
>,
44-
) => () => FieldApi<
44+
) => FieldApi<
4545
TParentData,
4646
TName,
4747
TFieldValidator,

packages/svelte-form/src/createForm.svelte.ts

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export function createForm<
2929
// No clue right now how we do that
3030
extendedApi.Field = Field
3131
extendedApi.createField = (props) =>
32+
// TODO (43081j): type is excessively deep.. no clue why yet
3233
createField(() => {
3334
return { ...props(), form: api }
3435
})

0 commit comments

Comments
 (0)