UNPKG

@superset-ui/core

Version:
3 lines 378 B
import { ParseMethod, TextResponse, JsonResponse } from '../types'; export default function parseResponse<T extends ParseMethod = 'json'>(apiPromise: Promise<Response>, parseMethod?: T): Promise<T extends "raw" | null ? Response : T extends "json" | "json-bigint" | undefined ? JsonResponse : T extends "text" ? TextResponse : never>; //# sourceMappingURL=parseResponse.d.ts.map