- typedEnv<Schema extends ZodTypeAny>(
c: Context<any, any, {}>,
schema: Schema,
key?: keyof Schema["_def"]["shape"],
): z.output<Schema> | z.output<Schema>[keyof Schema["_def"]["shape"]] Type Parameters
- Schema extends ZodTypeAny
Parameters
- c: Context<any, any, {}>
- schema: Schema
Optional
key: keyof Schema["_def"]["shape"]
Returns z.output<Schema> | z.output<Schema>[keyof Schema["_def"]["shape"]]