export enum Method { GET = 'GET', PUT = 'PUT', POST = 'POST', PATCH = 'PATCH', DELETE = 'DELETE', } export type Endpoint

= Readonly<{ method: Method; url: string | ((params: P) => string); headers?: Record; }>