UNPKG

622 BTypeScriptView Raw
1import type { RequestHeaders } from "./RequestHeaders";
2import type { RequestMethod } from "./RequestMethod";
3import type { RequestParameters } from "./RequestParameters";
4import type { Url } from "./Url";
5/**
6 * The `.endpoint()` method is guaranteed to set all keys defined by RequestParameters
7 * as well as the method property.
8 */
9export type EndpointDefaults = RequestParameters & {
10 baseUrl: Url;
11 method: RequestMethod;
12 url?: Url;
13 headers: RequestHeaders & {
14 accept: string;
15 "user-agent": string;
16 };
17 mediaType: {
18 format: string;
19 previews?: string[];
20 };
21};