Type Parameters

Hierarchy-Diagram

UML class diagram of ZodReadonly
Legend
icon for a class in the UML class diagram class
icon for an abstract class in the UML class diagram abstract class
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method
underlined static property/method
italic abstract property/method

Hierarchy (view full)

Constructors

Properties

_input: MakeReadonly<T["_input"]>
_output: MakeReadonly<T["_output"]>
_type: MakeReadonly<T["_output"]>
spa: ((data: unknown, params?: Partial<ParseParams>) => Promise<SafeParseReturnType<MakeReadonly<T["_input"]>, MakeReadonly<T["_output"]>>>)

Alias of safeParseAsync

Type declaration

create: (<T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>)

Type declaration

Accessors

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

Methods

  • Parameters

    • description: string

    Returns this

  • Returns boolean

  • Returns boolean

  • Returns T