@types/hotwired__turbo 8.0.6 → 8.0.8
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 +9 -5
- 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: Mon, 02 Mar 2026 00:54:45 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;
|
|
@@ -407,7 +411,7 @@ export type TurboBeforeRenderEvent = CustomEvent<{
|
|
|
407
411
|
newBody: HTMLBodyElement;
|
|
408
412
|
renderMethod: "replace" | "morph";
|
|
409
413
|
isPreview: boolean;
|
|
410
|
-
resume: (value?:
|
|
414
|
+
resume: (value?: unknown) => void;
|
|
411
415
|
render: (currentBody: HTMLBodyElement, newBody: HTMLBodyElement) => void;
|
|
412
416
|
}>;
|
|
413
417
|
export type TurboBeforeVisitEvent = CustomEvent<{ url: string }>;
|
|
@@ -418,7 +422,7 @@ export type TurboClickEvent = CustomEvent<{
|
|
|
418
422
|
export type TurboFrameLoadEvent = CustomEvent;
|
|
419
423
|
export type TurboBeforeFrameRenderEvent = CustomEvent<{
|
|
420
424
|
newFrame: FrameElement;
|
|
421
|
-
resume: (value?:
|
|
425
|
+
resume: (value?: unknown) => void;
|
|
422
426
|
render: (currentFrame: FrameElement, newFrame: FrameElement) => void;
|
|
423
427
|
}>;
|
|
424
428
|
export type TurboFrameRenderEvent = CustomEvent<{
|
|
@@ -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.8",
|
|
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": "49235df4baa34fac8dd6000066c66f312478dead406fd7ac4efbb94cabbb34dd",
|
|
35
35
|
"typeScriptVersion": "5.2"
|
|
36
36
|
}
|