From f9a21a0ea4ed4994db1f8e8c19ba05776ab4fd6f Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Wed, 29 Oct 2025 21:49:50 -0700 Subject: [PATCH] [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` --- src/battle-scene.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index 6c60a0caa20..a7679f4479f 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -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, });