stoker
Version:
Utilities for hono and @hono/zod-openapi
15 lines (14 loc) • 423 B
TypeScript
import { z } from "@hono/zod-openapi";
type Validator = "uuid" | "nanoid" | "cuid" | "cuid2" | "ulid";
export interface ParamsSchema {
name?: string;
validator?: Validator | undefined;
}
declare const getParamsSchema: ({ name, validator, }: ParamsSchema) => z.ZodObject<{
[x: string]: z.ZodString;
}, "strip", z.ZodTypeAny, {
[x: string]: string;
}, {
[x: string]: string;
}>;
export = getParamsSchema;