refactor(lint): tighten channel and config defaults

This commit is contained in:
Vincent Koc
2026-04-06 17:04:37 +01:00
parent 5d0e8336ab
commit a797068206
7 changed files with 20 additions and 12 deletions

View File

@@ -50,6 +50,5 @@ export interface ChannelsConfig {
/** Map provider -> channel id -> model override. */
modelByChannel?: ChannelModelByChannelConfig;
/** Channel sections are plugin-owned; concrete channel files augment this interface. */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: any;
[key: string]: unknown;
}

View File

@@ -100,7 +100,7 @@ function normalizeBundledChannelConfigs(
continue;
}
next ??= { ...value };
next[channelId] = parsed.data as ChannelsConfig[string];
next[channelId] = parsed.data;
}
return next ?? value;