Type Alias EndpointDefaults

EndpointDefaults: RequestParameters & {
    baseUrl: Url;
    headers: RequestHeaders & {
        accept: string;
        user-agent: string;
    };
    mediaType: {
        format: string;
        previews?: string[];
    };
    method: RequestMethod;
    url?: Url;
}

The .endpoint() method is guaranteed to set all keys defined by RequestParameters as well as the method property.