diff --git a/index.d.ts b/index.d.ts index 2a6c968..bde8853 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2251,107 +2251,156 @@ declare module "pokeapi-js-wrapper" { cacheImages?: boolean; }); - getBerryByName(name: string | number | string[] | number[]): Promise; - getBerryFirmnessByName(name: string | string[]): Promise; - getBerryFlavorByName(name: string | number | string[] | number[]): Promise; - getContestTypeByName(name: string | number | string[] | number[]): Promise; - getContestEffectById(id: number | number[]): Promise; - getSuperContestEffectById(id: number | number[]): Promise; - getEncounterMethodByName(name: string | number | string[] | number[]): Promise; - getEncounterConditionByName(name: string | number | string[] | number[]): Promise; - getEncounterConditionValueByName(name: string | number | string[] | number[]): Promise; - getEvolutionChainById(id: number | number[]): Promise; - getEvolutionTriggerByName(name: string | number | string[] | number[]): Promise; - getGenerationByName(name: string | number | string[] | number[]): Promise; - getPokedexByName(name: string | number | string[] | number[]): Promise; - getVersionByName(name: string | number | string[] | number[]): Promise; - getVersionGroupByName(name: string | number | string[] | number[]): Promise; - getItemByName(name: string | number | string[] | number[]): Promise; - getItemAttributeByName(name: string | number | string[] | number[]): Promise; - getItemCategoryByName(name: string | number | string[] | number[]): Promise; - getItemFlingEffectByName(name: string | number | string[] | number[]): Promise; - getItemPocketByName(name: string | number | string[] | number[]): Promise; - getMachineById(id: number | number[]): Promise; - getMoveByName(name: string | number | string[] | number[]): Promise; - getMoveAilmentByName(name: string | number | string[] | number[]): Promise; - getMoveBattleStyleByName(name: string | number | string[] | number[]): Promise; - getMoveCategoryByName(name: string | number | string[] | number[]): Promise; - getMoveDamageClassByName(name: string | number | string[] | number[]): Promise; - getMoveLearnMethodByName(name: string | number | string[] | number[]): Promise; - getMoveTargetByName(name: string | number | string[] | number[]): Promise; - getLocationByName(name: string | number | string[] | number[]): Promise; - getLocationAreaByName(name: string | number | string[] | number[]): Promise; - getPalParkAreaByName(name: string | number | string[] | number[]): Promise; - getRegionByName(name: string | number | string[] | number[]): Promise; - getAbilityByName(name: string | number | string[] | number[]): Promise; - getCharacteristicById(id: number | number[]): Promise; - getEggGroupByName(name: string | number | string[] | number[]): Promise; - getGenderByName(name: string | number | string[] | number[]): Promise; - getGrowthRateByName(name: string | number | string[] | number[]): Promise; - getNatureByName(name: string | number | string[] | number[]): Promise; - getPokeathlonStatByName(name: string | number | string[] | number[]): Promise; - getPokemonByName(name: string | number | string[] | number[]): Promise; - getPokemonEncounterAreasByName(name: string | number | string[] | number[]): Promise; - getPokemonColorByName(name: string | number | string[] | number[]): Promise; - getPokemonFormByName(name: string | number | string[] | number[]): Promise; - getPokemonHabitatByName(name: string | number | string[] | number[]): Promise; - getPokemonShapeByName(name: string | number | string[] | number[]): Promise; - getPokemonSpeciesByName(name: string | number | string[] | number[]): Promise; - getStatByName(name: string | number | string[] | number[]): Promise; - getTypeByName(name: string | number | string[] | number[]): Promise; - getLanguageByName(name: string | number | string[] | number[]): Promise; - - getEndpointsList(dict?: { offset: number, limit: number }): Promise; - getBerriesList(dict?: { offset: number, limit: number }): Promise; - getBerriesFirmnesssList(dict?: { offset: number, limit: number }): Promise; - getBerriesFlavorsList(dict?: { offset: number, limit: number }): Promise; - getContestTypesList(dict?: { offset: number, limit: number }): Promise; - getContestEffectsList(dict?: { offset: number, limit: number }): Promise; - getSuperContestEffectsList(dict?: { offset: number, limit: number }): Promise; - getEncounterMethodsList(dict?: { offset: number, limit: number }): Promise; - getEncounterConditionsList(dict?: { offset: number, limit: number }): Promise; - getEncounterConditionValuesList(dict?: { offset: number, limit: number }): Promise; - getEvolutionChainsList(dict?: { offset: number, limit: number }): Promise; - getEvolutionTriggersList(dict?: { offset: number, limit: number }): Promise; - getGenerationsList(dict?: { offset: number, limit: number }): Promise; - getPokedexsList(dict?: { offset: number, limit: number }): Promise; - getVersionsList(dict?: { offset: number, limit: number }): Promise; - getVersionGroupsList(dict?: { offset: number, limit: number }): Promise; - getItemsList(dict?: { offset: number, limit: number }): Promise; - getItemAttributesList(dict?: { offset: number, limit: number }): Promise; - getItemCategoriesList(dict?: { offset: number, limit: number }): Promise; - getItemFlingEffectsList(dict?: { offset: number, limit: number }): Promise; - getItemPocketsList(dict?: { offset: number, limit: number }): Promise; - getMachinesList(dict?: { offset: number, limit: number }): Promise; - getMovesList(dict?: { offset: number, limit: number }): Promise; - getMoveAilmentsList(dict?: { offset: number, limit: number }): Promise; - getMoveBattleStylesList(dict?: { offset: number, limit: number }): Promise; - getMoveCategoriesList(dict?: { offset: number, limit: number }): Promise; - getMoveDamageClassesList(dict?: { offset: number, limit: number }): Promise; - getMoveLearnMethodsList(dict?: { offset: number, limit: number }): Promise; - getMoveTargetsList(dict?: { offset: number, limit: number }): Promise; - getLocationsList(dict?: { offset: number, limit: number }): Promise; - getLocationAreasList(dict?: { offset: number, limit: number }): Promise; - getPalParkAreasList(dict?: { offset: number, limit: number }): Promise; - getRegionsList(dict?: { offset: number, limit: number }): Promise; - getAbilitiesList(dict?: { offset: number, limit: number }): Promise; - getCharacteristicsList(dict?: { offset: number, limit: number }): Promise; - getEggGroupsList(dict?: { offset: number, limit: number }): Promise; - getGendersList(dict?: { offset: number, limit: number }): Promise; - getGrowthRatesList(dict?: { offset: number, limit: number }): Promise; - getNaturesList(dict?: { offset: number, limit: number }): Promise; - getPokeathlonStatsList(dict?: { offset: number, limit: number }): Promise; - getPokemonsList(dict?: { offset: number, limit: number }): Promise; - getPokemonColorsList(dict?: { offset: number, limit: number }): Promise; - getPokemonFormsList(dict?: { offset: number, limit: number }): Promise; - getPokemonHabitatsList(dict?: { offset: number, limit: number }): Promise; - getPokemonShapesList(dict?: { offset: number, limit: number }): Promise; - getPokemonSpeciesList(dict?: { offset: number, limit: number }): Promise; - getStatsList(dict?: { offset: number, limit: number }): Promise; - getTypesList(dict?: { offset: number, limit: number }): Promise; - getLanguagesList(dict?: { offset: number, limit: number }): Promise; + getBerryByName(name: string | number): Promise; + getBerryByName(names: Array): Promise; + getBerryFirmnessByName(name: string): Promise; + getBerryFirmnessByName(names: Array): Promise; + getBerryFlavorByName(name: string | number): Promise; + getBerryFlavorByName(names: Array): Promise; + getContestTypeByName(name: string | number): Promise; + getContestTypeByName(names: Array): Promise; + getContestEffectById(id: number): Promise; + getContestEffectById(ids: number[]): Promise; + getSuperContestEffectById(id: number): Promise; + getSuperContestEffectById(ids: number[]): Promise; + getEncounterMethodByName(name: string | number): Promise; + getEncounterMethodByName(names: Array): Promise; + getEncounterConditionByName(name: string | number): Promise; + getEncounterConditionByName(names: Array): Promise; + getEncounterConditionValueByName(name: string | number): Promise; + getEncounterConditionValueByName(names: Array): Promise; + getEvolutionChainById(id: number): Promise; + getEvolutionChainById(ids: number[]): Promise; + getEvolutionTriggerByName(name: string | number): Promise; + getEvolutionTriggerByName(names: Array): Promise; + getGenerationByName(name: string | number): Promise; + getGenerationByName(names: Array): Promise; + getPokedexByName(name: string | number): Promise; + getPokedexByName(names: Array): Promise; + getVersionByName(name: string | number): Promise; + getVersionByName(names: Array): Promise; + getVersionGroupByName(name: string | number): Promise; + getVersionGroupByName(names: Array): Promise; + getItemByName(name: string | number): Promise; + getItemByName(names: Array): Promise; + getItemAttributeByName(name: string | number): Promise; + getItemAttributeByName(names: Array): Promise; + getItemCategoryByName(name: string | number): Promise; + getItemCategoryByName(names: Array): Promise; + getItemFlingEffectByName(name: string | number): Promise; + getItemFlingEffectByName(names: Array): Promise; + getItemPocketByName(name: string | number): Promise; + getItemPocketByName(names: Array): Promise; + getMachineById(id: number): Promise; + getMachineById(ids: number[]): Promise; + getMoveByName(name: string | number): Promise; + getMoveByName(names: Array): Promise; + getMoveAilmentByName(name: string | number): Promise; + getMoveAilmentByName(names: Array): Promise; + getMoveBattleStyleByName(name: string | number): Promise; + getMoveBattleStyleByName(names: Array): Promise; + getMoveCategoryByName(name: string | number): Promise; + getMoveCategoryByName(names: Array): Promise; + getMoveDamageClassByName(name: string | number): Promise; + getMoveDamageClassByName(names: Array): Promise; + getMoveLearnMethodByName(name: string | number): Promise; + getMoveLearnMethodByName(names: Array): Promise; + getMoveTargetByName(name: string | number): Promise; + getMoveTargetByName(names: Array): Promise; + getLocationByName(name: string | number): Promise; + getLocationByName(names: Array): Promise; + getLocationAreaByName(name: string | number): Promise; + getLocationAreaByName(names: Array): Promise; + getPalParkAreaByName(name: string | number): Promise; + getPalParkAreaByName(names: Array): Promise; + getRegionByName(name: string | number): Promise; + getRegionByName(names: Array): Promise; + getAbilityByName(name: string | number): Promise; + getAbilityByName(names: Array): Promise; + getCharacteristicById(id: number): Promise; + getCharacteristicById(ids: number[]): Promise; + getEggGroupByName(name: string | number): Promise; + getEggGroupByName(names: Array): Promise; + getGenderByName(name: string | number): Promise; + getGenderByName(names: Array): Promise; + getGrowthRateByName(name: string | number): Promise; + getGrowthRateByName(names: Array): Promise; + getNatureByName(name: string | number): Promise; + getNatureByName(names: Array): Promise; + getPokeathlonStatByName(name: string | number): Promise; + getPokeathlonStatByName(names: Array): Promise; + getPokemonByName(name: string | number): Promise; + getPokemonByName(names: Array): Promise; + getPokemonEncounterAreasByName(name: string | number | Array): Promise; + getPokemonColorByName(name: string | number): Promise; + getPokemonColorByName(names: Array): Promise; + getPokemonFormByName(name: string | number): Promise; + getPokemonFormByName(names: Array): Promise; + getPokemonHabitatByName(name: string | number): Promise; + getPokemonHabitatByName(names: Array): Promise; + getPokemonShapeByName(name: string | number): Promise; + getPokemonShapeByName(names: Array): Promise; + getPokemonSpeciesByName(name: string | number): Promise; + getPokemonSpeciesByName(names: Array): Promise; + getStatByName(name: string | number): Promise; + getStatByName(names: Array): Promise; + getTypeByName(name: string | number): Promise; + getTypeByName(names: Array): Promise; + getLanguageByName(name: string | number): Promise; + getLanguageByName(names: Array): Promise; + + getEndpointsList(dict?: { offset: number, limit: number }): Promise; + getBerriesList(dict?: { offset: number, limit: number }): Promise; + getBerriesFirmnesssList(dict?: { offset: number, limit: number }): Promise; + getBerriesFlavorsList(dict?: { offset: number, limit: number }): Promise; + getContestTypesList(dict?: { offset: number, limit: number }): Promise; + getContestEffectsList(dict?: { offset: number, limit: number }): Promise; + getSuperContestEffectsList(dict?: { offset: number, limit: number }): Promise; + getEncounterMethodsList(dict?: { offset: number, limit: number }): Promise; + getEncounterConditionsList(dict?: { offset: number, limit: number }): Promise; + getEncounterConditionValuesList(dict?: { offset: number, limit: number }): Promise; + getEvolutionChainsList(dict?: { offset: number, limit: number }): Promise; + getEvolutionTriggersList(dict?: { offset: number, limit: number }): Promise; + getGenerationsList(dict?: { offset: number, limit: number }): Promise; + getPokedexsList(dict?: { offset: number, limit: number }): Promise; + getVersionsList(dict?: { offset: number, limit: number }): Promise; + getVersionGroupsList(dict?: { offset: number, limit: number }): Promise; + getItemsList(dict?: { offset: number, limit: number }): Promise; + getItemAttributesList(dict?: { offset: number, limit: number }): Promise; + getItemCategoriesList(dict?: { offset: number, limit: number }): Promise; + getItemFlingEffectsList(dict?: { offset: number, limit: number }): Promise; + getItemPocketsList(dict?: { offset: number, limit: number }): Promise; + getMachinesList(dict?: { offset: number, limit: number }): Promise; + getMovesList(dict?: { offset: number, limit: number }): Promise; + getMoveAilmentsList(dict?: { offset: number, limit: number }): Promise; + getMoveBattleStylesList(dict?: { offset: number, limit: number }): Promise; + getMoveCategoriesList(dict?: { offset: number, limit: number }): Promise; + getMoveDamageClassesList(dict?: { offset: number, limit: number }): Promise; + getMoveLearnMethodsList(dict?: { offset: number, limit: number }): Promise; + getMoveTargetsList(dict?: { offset: number, limit: number }): Promise; + getLocationsList(dict?: { offset: number, limit: number }): Promise; + getLocationAreasList(dict?: { offset: number, limit: number }): Promise; + getPalParkAreasList(dict?: { offset: number, limit: number }): Promise; + getRegionsList(dict?: { offset: number, limit: number }): Promise; + getAbilitiesList(dict?: { offset: number, limit: number }): Promise; + getCharacteristicsList(dict?: { offset: number, limit: number }): Promise; + getEggGroupsList(dict?: { offset: number, limit: number }): Promise; + getGendersList(dict?: { offset: number, limit: number }): Promise; + getGrowthRatesList(dict?: { offset: number, limit: number }): Promise; + getNaturesList(dict?: { offset: number, limit: number }): Promise; + getPokeathlonStatsList(dict?: { offset: number, limit: number }): Promise; + getPokemonsList(dict?: { offset: number, limit: number }): Promise; + getPokemonColorsList(dict?: { offset: number, limit: number }): Promise; + getPokemonFormsList(dict?: { offset: number, limit: number }): Promise; + getPokemonHabitatsList(dict?: { offset: number, limit: number }): Promise; + getPokemonShapesList(dict?: { offset: number, limit: number }): Promise; + getPokemonSpeciesList(dict?: { offset: number, limit: number }): Promise; + getStatsList(dict?: { offset: number, limit: number }): Promise; + getTypesList(dict?: { offset: number, limit: number }): Promise; + getLanguagesList(dict?: { offset: number, limit: number }): Promise; /** Use .resource() to query any URL or path. */ - resource(param: string | string[]): Promise; + resource(param: string): Promise; + resource(params: string[]): Promise; } }