mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
twitch-ext: Update to 1.15 (#28740)
This commit is contained in:
committed by
Ryan Cavanaugh
parent
3464a4f5a0
commit
073542cf4b
Vendored
+8
-1
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user