diff --git a/src/@types/phase-types.ts b/src/@types/phase-types.ts index d396375c5fa..2324c927e3a 100644 --- a/src/@types/phase-types.ts +++ b/src/@types/phase-types.ts @@ -3,37 +3,25 @@ import type { Phase } from "#app/phase"; import type { PhaseConstructorMap } from "#app/phase-manager"; import type { ObjectValues } from "#types/type-helpers"; -// Intentionally export the types of everything in phase-manager, as this file is meant to be +// Intentionally [re-]export the types of everything in phase-manager, as this file is meant to be // the centralized place for type definitions for the phase system. export type * from "#app/phase-manager"; -// This file includes helpful types for the phase system. -// It intentionally imports the phase constructor map from the phase manager (and re-exports it) - -/** - * Map of phase names to constructors for said phase - */ +/** Map of phase names to constructors for said phase */ export type PhaseMap = { [K in keyof PhaseConstructorMap]: InstanceType; }; -/** - * Union type of all phase constructors. - */ +/** Union type of all phase constructors. */ export type PhaseClass = ObjectValues; -/** - * Union type of all phase names as strings. - */ +/** Union type of all phase names as strings. */ export type PhaseString = keyof PhaseMap; /** Type for predicate functions operating on a specific type of {@linkcode Phase}. */ - export type PhaseConditionFunc = (phase: PhaseMap[T]) => boolean; -/** - * Interface type representing the assumption that all phases with pokemon associated are dynamic - */ +/** Interface type representing the assumption that all phases with pokemon associated are dynamic */ export interface DynamicPhase extends Phase { getPokemon(): Pokemon; } diff --git a/src/phase-tree.ts b/src/phase-tree.ts index 55476f38d65..69bb72ca4f0 100644 --- a/src/phase-tree.ts +++ b/src/phase-tree.ts @@ -1,7 +1,6 @@ // biome-ignore-start lint/correctness/noUnusedImports: TSDoc imports import type { PhaseManager } from "#app/@types/phase-types"; import type { DynamicPhaseMarker } from "#phases/dynamic-phase-marker"; - // biome-ignore-end lint/correctness/noUnusedImports: TSDoc imports import type { PhaseMap, PhaseString } from "#app/@types/phase-types";