Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion app/services/platforms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ export interface IPlatformService {

fetchUserInfo: () => Promise<IUserInfo>;

putChannelInfo: (channelInfo: TStartStreamOptions) => Promise<void>;
/**
* Note: intentionally declared using method syntax (not a function-typed property)
* to avoid strict contravariant parameter checking when platform services implement this interface.
*/
putChannelInfo(channelInfo: TStartStreamOptions): Promise<void>;
Comment thread
sandboxcoder marked this conversation as resolved.

searchGames?: (searchString: string) => Promise<IGame[]>;

Expand Down
2 changes: 1 addition & 1 deletion app/services/platforms/twitch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export class TwitchService
}).then(json => json.total);
}

async putChannelInfo(settings: Partial<ITwitchStartStreamOptions>): Promise<void> {
async putChannelInfo(settings: ITwitchStartStreamOptions): Promise<void> {
if (settings.tags) {
this.twitchTagsService.actions.setTags(settings.tags);
} else {
Expand Down
Loading