@types/hotwired__turbo 8.0.2 → 8.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
hotwired__turbo/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for @hotwired/turbo (https://turbo.hotwir
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hotwired__turbo.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 11 Nov 2024 19:32:12 GMT
11
+ * Last updated: Mon, 09 Dec 2024 04:03:00 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -187,18 +187,16 @@ export interface FormSubmission {
187
187
  submitter?: HTMLButtonElement | HTMLInputElement;
188
188
  }
189
189
  export type FormSubmissionResult =
190
- | { success: boolean; fetchResponse: FetchResponse }
191
- | { success: false; error: Error };
190
+ & { formSubmission: FormSubmission }
191
+ & (
192
+ | { success: true; error: undefined; fetchResponse: FetchResponse }
193
+ | { success: false; error?: Error; fetchResponse?: FetchResponse }
194
+ );
192
195
 
193
196
  export type TurboSubmitStartEvent = CustomEvent<{
194
197
  formSubmission: FormSubmission;
195
198
  }>;
196
- export type TurboSubmitEndEvent = CustomEvent<
197
- & { formSubmission: FormSubmission }
198
- & {
199
- [K in keyof FormSubmissionResult]?: FormSubmissionResult[K];
200
- }
201
- >;
199
+ export type TurboSubmitEndEvent = CustomEvent<FormSubmissionResult>;
202
200
 
203
201
  export type TurboFrameMissingEvent = CustomEvent<{
204
202
  response: Response;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/hotwired__turbo",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "description": "TypeScript definitions for @hotwired/turbo",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hotwired__turbo",
6
6
  "license": "MIT",
@@ -26,6 +26,6 @@
26
26
  "scripts": {},
27
27
  "dependencies": {},
28
28
  "peerDependencies": {},
29
- "typesPublisherContentHash": "f650a9ca94456cc346fc48c3c2ba2c8bcd3d5c4f5113befe5ca20bc6ecc77c9a",
30
- "typeScriptVersion": "4.9"
29
+ "typesPublisherContentHash": "e7e8688baf0bc9ac3c70be34c99fa3fb32f41fc79b6d461b011b5ed3f5fca4c0",
30
+ "typeScriptVersion": "5.0"
31
31
  }