UNPKG

@nahkies/typescript-koa-runtime

Version:

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

10 lines (9 loc) 601 B
import { n as RequestInputType } from "./errors-2MNCnjJU.cjs"; import { Schema } from "joi"; //#region src/joi.d.ts declare function parseRequestInput<Schema$1 extends Schema>(schema: Schema$1, input: unknown, type: RequestInputType): any; declare function parseRequestInput(schema: undefined, input: unknown, type: RequestInputType): undefined; declare function responseValidationFactory(possibleResponses: [string, Schema][], defaultResponse?: Schema): (status: number, value: unknown) => any; //#endregion export { parseRequestInput, responseValidationFactory }; //# sourceMappingURL=joi.d.cts.map