pokeapi-typescript
pokeapi-typescript copied to clipboard
IType has incorrect type for moves. It should be an Array.
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.