@types/hotwired__turbo 8.0.6 → 8.0.7
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 +1 -1
- hotwired__turbo/index.d.ts +7 -3
- hotwired__turbo/package.json +2 -2
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:
|
|
11
|
+
* Last updated: Sun, 01 Mar 2026 23:38:06 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
hotwired__turbo/index.d.ts
CHANGED
|
@@ -78,11 +78,15 @@ export class StreamMessage {
|
|
|
78
78
|
constructor(fragment: DocumentFragment);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
export interface FetchRequestHeaders {
|
|
82
|
+
[header: string]: string | undefined;
|
|
83
|
+
}
|
|
84
|
+
|
|
81
85
|
export class FetchRequest {
|
|
82
86
|
body: FormData | URLSearchParams;
|
|
83
87
|
enctype: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain";
|
|
84
88
|
fetchOptions: RequestInit;
|
|
85
|
-
headers:
|
|
89
|
+
headers: FetchRequestHeaders;
|
|
86
90
|
method: "get" | "post" | "put" | "patch" | "delete";
|
|
87
91
|
params: URLSearchParams;
|
|
88
92
|
target: HTMLFormElement | HTMLAnchorElement | FrameElement | null;
|
|
@@ -489,9 +493,9 @@ export type TurboFrameMissingEvent = CustomEvent<{
|
|
|
489
493
|
}>;
|
|
490
494
|
|
|
491
495
|
export type TurboBeforeFetchRequestEvent = CustomEvent<{
|
|
492
|
-
fetchOptions: RequestInit;
|
|
496
|
+
fetchOptions: Omit<RequestInit, "headers"> & { headers: FetchRequestHeaders };
|
|
493
497
|
url: URL;
|
|
494
|
-
resume: (value
|
|
498
|
+
resume: (value?: unknown) => void;
|
|
495
499
|
}>;
|
|
496
500
|
|
|
497
501
|
export type TurboBeforeFetchResponseEvent = CustomEvent<{
|
hotwired__turbo/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/hotwired__turbo",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.7",
|
|
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",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"scripts": {},
|
|
32
32
|
"dependencies": {},
|
|
33
33
|
"peerDependencies": {},
|
|
34
|
-
"typesPublisherContentHash": "
|
|
34
|
+
"typesPublisherContentHash": "096a2fd4ffe6909711dc1bf4550cdbc775cdf71010cb71feb54a37794e1478c9",
|
|
35
35
|
"typeScriptVersion": "5.2"
|
|
36
36
|
}
|