UNPKG

634 BTypeScriptView Raw
1import type { RequestHeaders } from "./RequestHeaders.js";
2import type { RequestMethod } from "./RequestMethod.js";
3import type { RequestParameters } from "./RequestParameters.js";
4import type { Url } from "./Url.js";
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};