Interface ParamWithOptionalSchema<T>

Interface representing a parameter with an optional Zod schema.

interface ParamWithOptionalSchema<T> {
    schema?: ZodType<T, ZodTypeDef, T>;
    val: T;
}

Type Parameters

  • T

    The type of the parameter value.

Properties

Properties

schema?: ZodType<T, ZodTypeDef, T>

An optional Zod schema for validating the parameter value.

val: T

The value of the parameter.