Skip to content

Commit

Permalink
js -> ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftyp committed Sep 12, 2023
1 parent c16b74a commit 34693e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/drive/form_submission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ export class FormSubmission {
delegate: FormSubmissionDelegate
formElement: HTMLFormElement
submitter: HTMLInputElement
formData: FormData
formData: FormData | undefined
fetchRequest: FetchRequest
mustRedirect: boolean
state: string
originalSubmitText: string
state: string | undefined
originalSubmitText: string | undefined

result:
| { success: true; fetchResponse: FetchResponse }
| { success: false; fetchResponse?: FetchResponse; error?: Error }
| undefined

static confirmMethod(message: string, element: HTMLFormElement, submitter: HTMLInputElement) {
return Promise.resolve(confirm(message))
Expand Down

0 comments on commit 34693e2

Please sign in to comment.