nodemod
Version:
A collection of node modules for The Really Project
13 lines • 834 B
TypeScript
import type { FetchAsReturnType } from './custom_typings';
export declare function fetchAsArrayBuffer<T = ArrayBuffer, U = ArrayBuffer>(url: string, options?: RequestInit): Promise<FetchAsReturnType<T, U>>;
export declare function fetchAsBlob<T = Blob, U = Blob>(url: string, options?: RequestInit): Promise<FetchAsReturnType<T, U>>;
export declare function fetchAsJson<T = Record<string, unknown>, U = Error>(url: string, options?: RequestInit): Promise<FetchAsReturnType<T, U>>;
export declare function fetchAsText<T = string, U = Error>(url: string, options?: RequestInit): Promise<FetchAsReturnType<T, U>>;
declare const _default: {
arrayBuffer: typeof fetchAsArrayBuffer;
blob: typeof fetchAsBlob;
json: typeof fetchAsJson;
text: typeof fetchAsText;
};
export default _default;
//# sourceMappingURL=index.d.ts.map