Skip to content

Commit

Permalink
add deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Harris committed May 16, 2023
1 parent 7f50d7d commit 8e22421
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/kit/types/ambient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,16 @@ declare module '$app/forms' {
Invalid extends Record<string, unknown> | undefined = Record<string, any>
> = (input: {
action: URL;
/**
* use `formData` instead of `data`
* @deprecated
*/
data: FormData;
formData: FormData;
/**
* use `formElement` instead of `form`
* @deprecated
*/
form: HTMLFormElement;
formElement: HTMLFormElement;
controller: AbortController;
Expand All @@ -90,8 +98,16 @@ declare module '$app/forms' {
}) => MaybePromise<
| void
| ((opts: {
/**
* use `formData` instead of `data`
* @deprecated
*/
data: FormData;
formData: FormData;
/**
* use `formElement` instead of `form`
* @deprecated
*/
form: HTMLFormElement;
formElement: HTMLFormElement;
action: URL;
Expand Down

0 comments on commit 8e22421

Please sign in to comment.