[Dev] Update @ts-expect-error in battle-scene.ts

This allows devs to use the Go port of TypeScript (aka "tsgo"/"TS7")
without an error due to different handling of `@ts-expect-error`
This commit is contained in:
NightKev 2025-10-29 21:49:50 -07:00
parent a55b2b18e8
commit f9a21a0ea4

View File

@ -452,9 +452,17 @@ export class BattleScene extends SceneBase {
true,
);
//@ts-expect-error (the defined types in the package are incromplete...)
// TODO: fix the typing in a `.d.ts` file so the `ts-ignore` is no longer necessary
/* biome-ignore lint/suspicious/noTsIgnore: ts-ignore is necessary because `tsc` and `tsgo` require the directive to be on different lines,
* meaning `@ts-expect-error` is guaranteed to emit a diagnostic on one of the lines depending on which one is used
*/
// @ts-ignore
transition.transit({
mode: "blinds",
/* biome-ignore lint/suspicious/noTsIgnore: ts-ignore is necessary because `tsc` and `tsgo` require the directive to be on different lines,
* meaning `@ts-expect-error` is guaranteed to emit a diagnostic on one of the lines depending on which one is used
*/
// @ts-ignore
ease: "Cubic.easeInOut",
duration: 1250,
});