UNPKG

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