Type alias RequestFunction

RequestFunction: (<ResponseType>(jwt: string, url: string, method?: "GET" | "POST" | "PUT" | "DELETE", body?: unknown, auth?: boolean) => Promise<ResponseType>)

Type declaration

    • <ResponseType>(jwt: string, url: string, method?: "GET" | "POST" | "PUT" | "DELETE", body?: unknown, auth?: boolean): Promise<ResponseType>
    • Type Parameters

      • ResponseType = unknown

      Parameters

      • jwt: string
      • url: string
      • Optional method: "GET" | "POST" | "PUT" | "DELETE"
      • Optional body: unknown
      • Optional auth: boolean

      Returns Promise<ResponseType>

Generated using TypeDoc