UNPKG

@nahkies/typescript-fetch-runtime

Version:

Runtime package for code generated by @nahkies/openapi-code-generator using the typescript-fetch template

3 lines (2 loc) 289 B
import type { Res, StatusCode } from "./types"; export declare function responseValidationFactoryFactory<Schema>(parse: (schema: Schema, value: unknown) => any, possibleResponses: [string, Schema][], defaultResponse?: Schema): (whenRes: Promise<Res<StatusCode, unknown>>) => Promise<any>;