Type alias TRestApiOptions<TResponse>

TRestApiOptions<TResponse>: Partial<PublicConfiguration<TResponse, unknown, BareFetcher<TResponse>>>

Wrapper for SWR library configuration options with given response shape.

type FetchServicesOptions = TRestApiOptions<{ domain: string, services: string[] }[]>

Type Parameters

  • TResponse

    Type of expected API response.

Generated using TypeDoc