• Preparing search index...
  • The search index is not available
Palico App
  • Palico App
  • @palico-ai/client-js
  • createAPIClient

Function createAPIClient

  • createAPIClient(options): {
        fetch: (<RequestBody>(path, fetchOptions) => Promise<Response>);
        fetchJSON: (<Response, RequestBody>(path, fetchOptions) => Promise<Response>);
    }
  • Parameters

    • options: APIRequestOptions

    Returns {
        fetch: (<RequestBody>(path, fetchOptions) => Promise<Response>);
        fetchJSON: (<Response, RequestBody>(path, fetchOptions) => Promise<Response>);
    }

    • fetch: (<RequestBody>(path, fetchOptions) => Promise<Response>)
        • <RequestBody>(path, fetchOptions): Promise<Response>
        • Type Parameters

          • RequestBody = any

          Parameters

          • path: string
          • fetchOptions: APIFetchOptions<RequestBody>

          Returns Promise<Response>

    • fetchJSON: (<Response, RequestBody>(path, fetchOptions) => Promise<Response>)
        • <Response, RequestBody>(path, fetchOptions): Promise<Response>
        • Type Parameters

          • Response = any
          • RequestBody = any

          Parameters

          • path: string
          • fetchOptions: APIFetchOptions<RequestBody>

          Returns Promise<Response>

    • Defined in request.ts:15

Settings

Member Visibility

Theme

Palico App
  • Loading...

Generated using TypeDoc