Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "imdb"

Index

Type aliases

RequestType

RequestType: "movie" | "series" | "episode" | "game"

Type of media we're searching for

Functions

get

  • Fetches a single movie by arbitrary criteria

    Parameters

    Returns Promise<Movie>

    a promise yielding a movie

isRequestType

  • isRequestType(reqtype: string): reqtype is RequestType
  • Parameters

    • reqtype: string

    Returns reqtype is RequestType

search

  • Searches for a movie by arbitrary criteria

    Parameters

    • req: SearchRequest

      set of requirements to search for

    • opts: MovieOpts

      options that modify a search

    • Optional page: undefined | number

      page number to return

    Returns Promise<SearchResults>

    a promise yielding search results

Generated using TypeDoc