twitch-ext: Update to 1.15 (#28740)

This commit is contained in:
Benedict Etzel
2018-09-10 14:35:55 -07:00
committed by Ryan Cavanaugh
parent 3464a4f5a0
commit 073542cf4b
2 changed files with 9 additions and 1 deletions
+8 -1
View File
@@ -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 <https://github.com/beheh>
// 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.
*
+1
View File
@@ -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();