You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A submitter argument is available in the SubmitFunction however the type is missing in index.d.ts. The type has already been added to the documentation and packages/kit/types/ambient.d.ts but the SubmitFunction is duplicated due to a likeyly bug in TS (related).
The original feature was added here.
Reproduction
This can be seen in any SvelteKit app that uses a SubmitFunction and destructures submitter from the input arguments.
Logs
Property 'submitter' does not exist on type '{ action: URL; data: FormData; form: HTMLFormElement; controller: AbortController; cancel(): void; }'.ts(2339)
igneosaur
changed the title
'submitter' is not typed in SubmitFunction when developing in a SvelteKit appsubmitter is not typed in SubmitFunction when developing in a SvelteKit app
Mar 22, 2023
igneosaur
changed the title
submitter is not typed in SubmitFunction when developing in a SvelteKit appsubmitter is not typed in packages/kit/types/index.d.tsSubmitFunctionMar 22, 2023
igneosaur
changed the title
submitter is not typed in packages/kit/types/index.d.tsSubmitFunctionsubmitter is not typed in packages/kit/types/index.d.tsSubmitFunction arguments
Mar 22, 2023
Describe the bug
A
submitter
argument is available in theSubmitFunction
however the type is missing inindex.d.ts
. The type has already been added to the documentation andpackages/kit/types/ambient.d.ts
but theSubmitFunction
is duplicated due to a likeyly bug in TS (related).The original feature was added here.
Reproduction
This can be seen in any SvelteKit app that uses a
SubmitFunction
and destructuressubmitter
from the input arguments.Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: