Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wrapper/chain"

Index

Type aliases

Functions

Type aliases

RequestChain

RequestChain: DarkSkyRequestChain

Functions

createRequestChain

  • Conveience function for creating a Request Chain.

    Example usage:

    // Only get the hourly forecast, and extend it.
    createRequestChain("api-token", 42, -42)
     .units(Units.CA)
     .extendHourly()
     .onlyHourly()
     .execute()

    Parameters

    • token: string

      DarkSky developer API token.

    • latitude: NumberString

      The latitude of a location (in decimal degrees).

    • longitude: NumberString

      The longitude of a location (in decimal degrees).

    • Optional options: DarkSkyOptions

      Optional query params for the request.

    Returns DarkSkyRequestChain

Generated using TypeDoc