UNPKG

454 BTypeScriptView Raw
1import type { RequestHeaders } from "./RequestHeaders";
2import type { RequestMethod } from "./RequestMethod";
3import type { RequestRequestOptions } from "./RequestRequestOptions";
4import type { Url } from "./Url";
5/**
6 * Generic request options as they are returned by the `endpoint()` method
7 */
8export type RequestOptions = {
9 method: RequestMethod;
10 url: Url;
11 headers: RequestHeaders;
12 body?: any;
13 request?: RequestRequestOptions;
14};