1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-23 00:34:14 +02:00

refactor8frontend9: anyを除去 (#16778)

This commit is contained in:
かっこかり
2025-11-10 15:33:54 +09:00
committed by GitHub
parent 73bcd330f7
commit fd2fe34270
16 changed files with 42 additions and 110 deletions

View File

@@ -222,7 +222,8 @@ export class WatermarkRenderer {
},
});
} else {
throw new Error(`Unrecognized layer type: ${(layer as any).type}`);
// @ts-expect-error Should be unreachable
throw new Error(`Unrecognized layer type: ${layer.type}`);
}
}