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) 256 B
import type { z } from "zod"; export declare function responseValidationFactory(possibleResponses: [string, z.ZodTypeAny][], defaultResponse?: z.ZodTypeAny): (whenRes: Promise<import("./types").Res<import("./types").StatusCode, unknown>>) => Promise<any>;