• Preparing search index...
  • The search index is not available
rickmortyapi - v2.3.0
  • rickmortyapi - v2.3.0
  • index
  • getLocation

Function getLocation

  • getLocation<T>(id: T): Promise<ApiResponse<T extends number ? Location : Location[]>>
  • Gets a Location by id or array of ids.
    https://rickandmortyapi.com/documentation/#location

    Type Parameters

    • T extends number | number[]

    Parameters

    • id: T

    Returns Promise<ApiResponse<T extends number ? Location : Location[]>>

    • Defined in location/index.ts:17

Settings

Member Visibility

Theme

Modules

  • rickmortyapi - v2.3.0
    • index
    • interfaces
  • ApiResponse
  • Character
  • CharacterFilter
  • CharacterLocation
  • Endpoints
  • Episode
  • EpisodeFilter
  • Info
  • Location
  • LocationFilter
  • ResourceBase
  • getCharacter
  • getCharacters
  • getEndpoints
  • getEpisode
  • getEpisodes
  • getLocation
  • getLocations