Options
All
  • Public
  • Public/Protected
  • All
Menu

Module api

Index

Type Aliases

EndpointConfig: FigmatikConfig & { request?: any }

Functions

  • Endpoint<RequestType, ResponseType>(resource: string, parse?: ResponseParser, config?: EndpointConfig): ((requestParams?: RequestType, cache?: "no-cache" | "only-if-cached" | "reload") => Promise<ResponseType>)
  • Type Parameters

    • RequestType

    • ResponseType

    Parameters

    Returns ((requestParams?: RequestType, cache?: "no-cache" | "only-if-cached" | "reload") => Promise<ResponseType>)

      • (requestParams?: RequestType, cache?: "no-cache" | "only-if-cached" | "reload"): Promise<ResponseType>
      • Parameters

        • Optional requestParams: RequestType
        • Optional cache: "no-cache" | "only-if-cached" | "reload"

        Returns Promise<ResponseType>

Generated using TypeDoc