@types/hotwired__turbo 8.0.3 → 8.0.5
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 +2 -2
- hotwired__turbo/index.d.ts +7 -0
- hotwired__turbo/package.json +8 -3
hotwired__turbo/README.md
CHANGED
|
@@ -8,8 +8,8 @@ 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: Thu, 01 Jan 2026 04:28:37 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
15
|
-
These definitions were written by [Gareth Jones](https://github.com/G-Rath),
|
|
15
|
+
These definitions were written by [Gareth Jones](https://github.com/G-Rath), [Luke Davia](https://github.com/lukeify), and [Alex Coles](https://github.com/myabc).
|
hotwired__turbo/index.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export interface TurboSession {
|
|
|
93
93
|
connectStreamSource(source: unknown): void;
|
|
94
94
|
disconnectStreamSource(source: unknown): void;
|
|
95
95
|
renderStreamMessage(message: unknown): void;
|
|
96
|
+
drive: boolean;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
export const StreamActions: {
|
|
@@ -218,6 +219,11 @@ export type TurboFetchRequestErrorEvent = CustomEvent<{
|
|
|
218
219
|
error: Error;
|
|
219
220
|
}>;
|
|
220
221
|
|
|
222
|
+
export interface TurboElementTagNameMap {
|
|
223
|
+
"turbo-frame": FrameElement;
|
|
224
|
+
"turbo-stream": StreamElement;
|
|
225
|
+
}
|
|
226
|
+
|
|
221
227
|
export interface TurboElementEventMap {
|
|
222
228
|
"turbo:before-frame-render": TurboBeforeFrameRenderEvent;
|
|
223
229
|
"turbo:before-fetch-request": TurboBeforeFetchRequestEvent;
|
|
@@ -245,6 +251,7 @@ export interface TurboGlobalEventHandlersEventMap extends TurboElementEventMap {
|
|
|
245
251
|
|
|
246
252
|
declare global {
|
|
247
253
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
254
|
+
interface HTMLElementTagNameMap extends TurboElementTagNameMap {}
|
|
248
255
|
interface ElementEventMap extends TurboElementEventMap {}
|
|
249
256
|
interface GlobalEventHandlersEventMap extends TurboGlobalEventHandlersEventMap {}
|
|
250
257
|
/* eslint-enable @typescript-eslint/no-empty-interface */
|
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.5",
|
|
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",
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
"name": "Luke Davia",
|
|
15
15
|
"githubUsername": "lukeify",
|
|
16
16
|
"url": "https://github.com/lukeify"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "Alex Coles",
|
|
20
|
+
"githubUsername": "myabc",
|
|
21
|
+
"url": "https://github.com/myabc"
|
|
17
22
|
}
|
|
18
23
|
],
|
|
19
24
|
"main": "",
|
|
@@ -26,6 +31,6 @@
|
|
|
26
31
|
"scripts": {},
|
|
27
32
|
"dependencies": {},
|
|
28
33
|
"peerDependencies": {},
|
|
29
|
-
"typesPublisherContentHash": "
|
|
30
|
-
"typeScriptVersion": "5.
|
|
34
|
+
"typesPublisherContentHash": "7cefcb735be30522b374d78df45635bb5079e0cd2123523fc36ed0c740b534d2",
|
|
35
|
+
"typeScriptVersion": "5.2"
|
|
31
36
|
}
|