Class ZodMap<Key, Value>

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

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

Alias of safeParseAsync

create: <
    Key_1 extends Zod.z.ZodTypeAny = Zod.z.ZodTypeAny,
    Value_1 extends Zod.z.ZodTypeAny = Zod.z.ZodTypeAny,
>(
    keyType: Key_1,
    valueType: Value_1,
    params?: Zod.z.RawCreateParams,
) => Zod.z.ZodMap<Key_1, Value_1>

Accessors

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

  • get keySchema(): Key
  • Returns Key

  • get valueSchema(): Value
  • Returns Value

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Parameters

    Returns Map<Key["_output"], Value["_output"]>

  • Parameters

    Returns Promise<Map<Key["_output"], Value["_output"]>>