UNPKG

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