@servicenow/sdk - v4.4.1
    Preparing search index...

    Class ZodEffects<T, Output, Input>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _input: Input
    _output: Output
    _type: Output
    spa: (
        data: unknown,
        params?: Partial<ParseParams>,
    ) => Promise<SafeParseReturnType<Input, Output>>

    Alias of safeParseAsync

    create: <I extends ZodTypeAny>(
        schema: I,
        effect: Effect<I["_output"]>,
        params?: RawCreateParams,
    ) => ZodEffects<I, I["_output"], input<I>>
    createWithPreprocess: <I extends ZodTypeAny>(
        preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,
        schema: I,
        params?: RawCreateParams,
    ) => ZodEffects<I, I["_output"], unknown>

    Accessors

    • get description(): string | undefined

      Returns string | undefined

    Methods

    • Parameters

      Returns string

    • Parameters

      • description: string

      Returns this

    • Returns T

    • Returns boolean

    • Returns boolean

    • Returns T