()
| 13 | } |
| 14 | |
| 15 | export function createFetcher<T>(): Fetcher<ResponseWithHeaders<T>, string> { |
| 16 | return (input: RequestInfo, init?: RequestInit) => |
| 17 | makeRequest<null, T>( |
| 18 | /* method = */ "GET", |
| 19 | /* input = */ input, |
| 20 | /* req = */ null, |
| 21 | /* init = */ init, |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | export async function get<RES>( |
| 26 | input: RequestInfo, |
no test coverage detected