Integration App SDK - v1.14.0
    Preparing search index...

    Class ZodObject<T, UnknownKeys, Catchall, Output, Input>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _type: Output
    _output: Output
    _input: Input
    "~standard": Props<Input, Output>
    spa: (
        data: unknown,
        params?: InexactPartial<ParseParams>,
    ) => Promise<SafeParseReturnType<Input, Output>>

    Alias of safeParseAsync

    nonstrict: () => ZodObject<T, "passthrough", Catchall>

    In most cases, this is no longer needed - unknown properties are now silently stripped. If you want to pass through unknown properties, use .passthrough() instead.

    augment: <Augmentation extends ZodRawShape>(
        augmentation: Augmentation,
    ) => ZodObject<extendShape<T, Augmentation>, UnknownKeys, Catchall>

    Use .extend instead

    create: <Shape extends ZodRawShape>(
        shape: Shape,
        params?: RawCreateParams,
    ) => ZodObject<
        Shape,
        "strip",
        ZodTypeAny,
        {
            [k in string
            | number
            | symbol]: addQuestionMarks<baseObjectOutputType<Shape>, any>[k]
        },
        { [k in string
        | number
        | symbol]: baseObjectInputType<Shape>[k] },
    >
    strictCreate: <Shape extends ZodRawShape>(
        shape: Shape,
        params?: RawCreateParams,
    ) => ZodObject<Shape, "strict">
    lazycreate: <Shape extends ZodRawShape>(
        shape: () => Shape,
        params?: RawCreateParams,
    ) => ZodObject<Shape, "strip">

    Accessors

    • get description(): undefined | string

      Returns undefined | string

    • get shape(): T

      Returns T

    Methods

    • Parameters

      • description: string

      Returns this

    • Returns boolean

    • Returns boolean

    • Returns { shape: T; keys: string[] }

    • Returns ZodObject<
          { [k in string
          | number
          | symbol]: ZodOptional<T[k]> },
          UnknownKeys,
          Catchall,
      >

    • Type Parameters

      • Mask extends Exactly<{ [k in string | number | symbol]?: true }, Mask>

      Parameters

      Returns ZodObject<
          {
              [k in string
              | number
              | symbol]: k extends keyof T
                  ? {
                      [k in string | number | symbol]: k extends keyof Mask
                          ? ZodOptional<T[k<k>]>
                          : T[k]
                  }[k<k>]
                  : never
          },
          UnknownKeys,
          Catchall,
      >

    • Returns ZodObject<
          { [k in string
          | number
          | symbol]: deoptional<T[k]> },
          UnknownKeys,
          Catchall,
      >

    • Type Parameters

      • Mask extends Exactly<{ [k in string | number | symbol]?: true }, Mask>

      Parameters

      Returns ZodObject<
          {
              [k in string
              | number
              | symbol]: k extends keyof T
                  ? {
                      [k in string | number | symbol]: k extends keyof Mask
                          ? deoptional<T[k<k>]>
                          : T[k]
                  }[k<k>]
                  : never
          },
          UnknownKeys,
          Catchall,
      >