Class ZodRecord<Key, Value>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

_input: Zod.z.RecordType<Key["_input"], Value["_input"]>
_output: Zod.z.RecordType<Key["_output"], Value["_output"]>
_type: Zod.z.RecordType<Key["_output"], Value["_output"]>
spa: (
    data: unknown,
    params?: Partial<Zod.z.ParseParams>,
) => Promise<
    Zod.z.SafeParseReturnType<
        Zod.z.RecordType<Key["_input"], Value["_input"]>,
        Zod.z.RecordType<Key["_output"], Value["_output"]>,
    >,
>

Alias of safeParseAsync

Accessors

  • get description(): undefined | string
  • Returns undefined | string

  • get element(): Value
  • Returns Value

  • get keySchema(): Key
  • Returns Key

  • get valueSchema(): Value
  • Returns Value

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean