pokeapi-typescript icon indicating copy to clipboard operation
pokeapi-typescript copied to clipboard

IType has incorrect type for moves. It should be an Array.

Open paolocezar91 opened this issue 6 months ago • 0 comments

Hello, I found an error for IType interface declaration

export interface IType {
    id: number;
    name: string;
    damage_relations: ITypeRelations;
    game_indices: IGenerationGameIndex[];
    generation: INamedApiResource<IGeneration>;
    move_damage_class: INamedApiResource<IMoveDamageClass>;
    names: IName[];
    pokemon: ITypePokemon[];
    moves: INamedApiResource<IMove>;
}

The "moves" attribute should be INamedApiResource<IMove>[]. I noticed in a project which I'm using it and I'm having problems when trying to build it.

paolocezar91 avatar Jul 25 '25 20:07 paolocezar91