From fcb16d167ce40eba52a625ed40a7f2283160b585 Mon Sep 17 00:00:00 2001 From: Richard Osborne Date: Fri, 5 Jun 2026 10:56:46 -0500 Subject: [PATCH 1/2] fix platform type checking * twitch.js: revert putChannelInfo now that root cause has been addressed * platforms/index.ts: switch putChannelInfo from property shorthand to method shorthand, which uses bivariant parameter checking instead of strict contravariance --- app/services/platforms/index.ts | 2 +- app/services/platforms/twitch.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/platforms/index.ts b/app/services/platforms/index.ts index ce6b9bcc608f..3a077896d5f6 100644 --- a/app/services/platforms/index.ts +++ b/app/services/platforms/index.ts @@ -194,7 +194,7 @@ export interface IPlatformService { fetchUserInfo: () => Promise; - putChannelInfo: (channelInfo: TStartStreamOptions) => Promise; + 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 { From a98291857606cac80f516c09712849aeeb40930f Mon Sep 17 00:00:00 2001 From: Richard Date: Fri, 5 Jun 2026 11:08:07 -0500 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- app/services/platforms/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/services/platforms/index.ts b/app/services/platforms/index.ts index 3a077896d5f6..f77e80c90da1 100644 --- a/app/services/platforms/index.ts +++ b/app/services/platforms/index.ts @@ -194,6 +194,10 @@ export interface IPlatformService { fetchUserInfo: () => 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;