From 073542cf4bc4bf187a69cbbee41c9a8f1756c60b Mon Sep 17 00:00:00 2001 From: Benedict Etzel Date: Mon, 10 Sep 2018 23:35:55 +0200 Subject: [PATCH] twitch-ext: Update to 1.15 (#28740) --- types/twitch-ext/index.d.ts | 9 ++++++++- types/twitch-ext/twitch-ext-tests.ts | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/types/twitch-ext/index.d.ts b/types/twitch-ext/index.d.ts index 279d17cd14..87bad1958d 100644 --- a/types/twitch-ext/index.d.ts +++ b/types/twitch-ext/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for twitch-ext 1.14 +// Type definitions for twitch-ext 1.15 // Project: https://dev.twitch.tv/docs/extensions/reference/#javascript-helper // Definitions by: Benedict Etzel // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -137,6 +137,13 @@ interface TwitchExtActions { */ followChannel(channelName: string): void; + /** + * This function causes your video-component or video-overlay extension to be minimized. + * + * @see https://dev.twitch.tv/docs/extensions/reference/#minimize + */ + minimize(): void; + /** * This function registers a callback that is invoked whenever a user completes an interaction prompted by the followChannel action. * diff --git a/types/twitch-ext/twitch-ext-tests.ts b/types/twitch-ext/twitch-ext-tests.ts index d981367fd5..0284e0191c 100644 --- a/types/twitch-ext/twitch-ext-tests.ts +++ b/types/twitch-ext/twitch-ext-tests.ts @@ -32,6 +32,7 @@ window.Twitch.ext.actions.onFollow((didFollow, channelName) => { console.log(`You followed ${channelName}`); } }); +window.Twitch.ext.actions.minimize(); window.Twitch.ext.actions.followChannel("hearthsim"); window.Twitch.ext.actions.requestIdShare();