UNPKG

pmgo-pokedex

Version:

Provide Pokemon GO pokedex data and useful translation.

21 lines (20 loc) 853 B
import { Pokemon } from './models/pokemon'; type Locale = 'en-US' | 'zh-TW'; declare class Pokedex { private defaultTargetLocale; private pokemonNameList; private pokemonList; private formList; private regionList; private typeList; constructor(targetLocale?: Locale); /** Get pokemon's name by pokemon's number. */ getPokemonNameByNo(pokemonNo: number, locale?: Locale): string | null; /** Get pokemon info object by pokemon's fuzzy name. */ getPokemonByFuzzyName: (pokemonName: string, targetLocale?: Locale) => Pokemon; /** Translate pokemon's display name by pokemon's fuzzy name. */ transPokemonName(pokemonName: string, targetLocale?: Locale): string; /** Translate type by text of pokemon type. */ transType(typeText: string, targetLocale?: Locale): string | null; } export { Pokedex };