diff --git a/app/services/platforms/index.ts b/app/services/platforms/index.ts index ce6b9bcc608f..f77e80c90da1 100644 --- a/app/services/platforms/index.ts +++ b/app/services/platforms/index.ts @@ -194,7 +194,11 @@ export interface IPlatformService { fetchUserInfo: () => Promise; - putChannelInfo: (channelInfo: TStartStreamOptions) => Promise; + /** + * 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; searchGames?: (searchString: string) => Promise; diff --git a/app/services/platforms/twitch.ts b/app/services/platforms/twitch.ts index 4f3bf1128390..e7308ff03ec7 100644 --- a/app/services/platforms/twitch.ts +++ b/app/services/platforms/twitch.ts @@ -503,7 +503,7 @@ export class TwitchService }).then(json => json.total); } - async putChannelInfo(settings: Partial): Promise { + async putChannelInfo(settings: ITwitchStartStreamOptions): Promise { if (settings.tags) { this.twitchTagsService.actions.setTags(settings.tags); } else {