@nahkies/typescript-koa-runtime
Version:
Runtime package for code generated by @nahkies/openapi-code-generator using the typescript-koa template
10 lines (9 loc) • 631 B
text/typescript
import { n as RequestInputType } from "./errors-2MNCnjJU.cjs";
import { z } from "zod/v3";
//#region src/zod-v3.d.ts
declare function parseRequestInput<Schema extends z.ZodTypeAny>(schema: Schema, input: unknown, type: RequestInputType): z.infer<Schema>;
declare function parseRequestInput(schema: undefined, input: unknown, type: RequestInputType): undefined;
declare function responseValidationFactory(possibleResponses: [string, z.ZodTypeAny][], defaultResponse?: z.ZodTypeAny): (status: number, value: unknown) => any;
//#endregion
export { parseRequestInput, responseValidationFactory };
//# sourceMappingURL=zod-v3.d.cts.map