diff --git a/types/hotwired__turbo/hotwired__turbo-tests.ts b/types/hotwired__turbo/hotwired__turbo-tests.ts index cfe13f4fd68a59..3ea7a89377bec7 100644 --- a/types/hotwired__turbo/hotwired__turbo-tests.ts +++ b/types/hotwired__turbo/hotwired__turbo-tests.ts @@ -73,6 +73,7 @@ Turbo.visit("my-location", { frame: "mine" }); // $ExpectType TurboSession Turbo.session; +Turbo.session.drive = false; StreamActions.log = function() { // $ExpectType StreamElement diff --git a/types/hotwired__turbo/index.d.ts b/types/hotwired__turbo/index.d.ts index bab2003681162e..d5232a06bce928 100644 --- a/types/hotwired__turbo/index.d.ts +++ b/types/hotwired__turbo/index.d.ts @@ -93,6 +93,7 @@ export interface TurboSession { connectStreamSource(source: unknown): void; disconnectStreamSource(source: unknown): void; renderStreamMessage(message: unknown): void; + drive: boolean; } export const StreamActions: {