UNPKG

remix-hono

Version:
4 lines (3 loc) 263 B
import type { Context } from "hono"; import type { z } from "zod"; export declare function typedEnv<Schema extends z.ZodTypeAny>(c: Context, schema: Schema, key?: keyof Schema["_def"]["shape"]): z.output<Schema> | z.output<Schema>[keyof Schema["_def"]["shape"]];