Type alias ApiOptions<Parameters, Body, Headers>

ApiOptions<Parameters, Body, Headers>: {
    body?: Body;
    headers?: Headers;
    parameters?: Parameters;
}

Generic signature of the options objects used by commerce-sdk-isomorphic

Type Parameters

  • Parameters extends object = Record<string, unknown>

  • Body extends object | unknown[] | undefined = Record<string, unknown> | unknown[] | undefined

  • Headers extends Record<string, string> = Record<string, string>

Type declaration

  • Optional body?: Body
  • Optional headers?: Headers
  • Optional parameters?: Parameters