(endpoint: Endpoint<Body>)
| 120 | } |
| 121 | |
| 122 | const endpointBaseURL = <Body>(endpoint: Endpoint<Body>) => |
| 123 | typeof endpoint.baseURL === "string" ? endpoint.baseURL : undefined |
| 124 | |
| 125 | const mergeHeaders = (...items: ReadonlyArray<Record<string, string> | undefined>) => { |
| 126 | const entries = items.flatMap((item) => |