refactor: migrate shared type imports

This commit is contained in:
2026-03-27 00:33:52 -07:00
parent a92631bf52
commit 49a582b4fc
66 changed files with 793 additions and 479 deletions

View File

@@ -17,7 +17,12 @@ export function applyStatsConfig(context: ResolveContext): void {
if (markWatchedKey !== undefined) {
resolved.stats.markWatchedKey = markWatchedKey;
} else if (src.stats.markWatchedKey !== undefined) {
warn('stats.markWatchedKey', src.stats.markWatchedKey, resolved.stats.markWatchedKey, 'Expected string.');
warn(
'stats.markWatchedKey',
src.stats.markWatchedKey,
resolved.stats.markWatchedKey,
'Expected string.',
);
}
const serverPort = asNumber(src.stats.serverPort);

View File

@@ -49,7 +49,10 @@ test('subtitleSidebar accepts zero opacity', () => {
applySubtitleDomainConfig(context);
assert.equal(context.resolved.subtitleSidebar.opacity, 0);
assert.equal(warnings.some((warning) => warning.path === 'subtitleSidebar.opacity'), false);
assert.equal(
warnings.some((warning) => warning.path === 'subtitleSidebar.opacity'),
false,
);
});
test('subtitleSidebar falls back and warns on invalid values', () => {