type value = any; export type Endpoint> = { method: 'get' | 'post' | 'patch' | 'delete'; path: (e: T) => string; pathParams: (keyof T)[]; queryParams: (keyof T)[]; bodyParams: (keyof T)[]; };