From 42b2ea7fc0085c18bea2b2302e17a41e4bcea661 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Wed, 10 Sep 2025 12:20:38 -0500 Subject: [PATCH] Remove `@overload` tags --- src/field/arena.ts | 2 -- src/field/pokemon.ts | 8 -------- 2 files changed, 10 deletions(-) diff --git a/src/field/arena.ts b/src/field/arena.ts index ed23e42b119..ff7379b2a4a 100644 --- a/src/field/arena.ts +++ b/src/field/arena.ts @@ -732,14 +732,12 @@ export class Arena { * Attempt to get a tag from the Arena via {@linkcode getTagOnSide} that applies to both sides * @param tagType - The {@linkcode ArenaTagType} to retrieve * @returns The existing {@linkcode ArenaTag}, or `undefined` if not present. - * @overload */ getTag(tagType: ArenaTagType): ArenaTag | undefined; /** * Attempt to get a tag from the Arena via {@linkcode getTagOnSide} that applies to both sides * @param tagType - The constructor of the {@linkcode ArenaTag} to retrieve * @returns The existing {@linkcode ArenaTag}, or `undefined` if not present. - * @overload */ getTag(tagType: Constructor | AbstractConstructor): T | undefined; getTag(tagType: ArenaTagType | Constructor | AbstractConstructor): ArenaTag | undefined { diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 3be09b4265e..76af4f81950 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -4291,18 +4291,10 @@ export abstract class Pokemon extends Phaser.GameObjects.Container { return false; } - /**@overload */ getTag(tagType: BattlerTagType.GRUDGE): GrudgeTag | undefined; - - /** @overload */ getTag(tagType: BattlerTagType.SUBSTITUTE): SubstituteTag | undefined; - - /** @overload */ getTag(tagType: BattlerTagType): BattlerTag | undefined; - - /** @overload */ getTag(tagType: Constructor): T | undefined; - getTag(tagType: BattlerTagType | Constructor): BattlerTag | undefined { return typeof tagType === "function" ? this.summonData.tags.find(t => t instanceof tagType)