mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 14:55:22 +01:00
[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:
parent
a55b2b18e8
commit
f9a21a0ea4
@ -452,9 +452,17 @@ export class BattleScene extends SceneBase {
|
|||||||
true,
|
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({
|
transition.transit({
|
||||||
mode: "blinds",
|
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",
|
ease: "Cubic.easeInOut",
|
||||||
duration: 1250,
|
duration: 1250,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user