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

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

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

    Alias of safeParseAsync

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

    Accessors

    • get description(): string | undefined

      Returns string | undefined

    Methods

    • Parameters

      Returns string

    • Type Parameters

      • B extends string | number | symbol

      Parameters

      • Optionalbrand: B

      Returns ZodBranded<ZodOptional<T>, B>

    • Parameters

      • def: T["_output"] | undefined

      Returns ZodCatch<ZodOptional<T>>

    • Parameters

      • def: (
            ctx: { error: ZodError; input: T["_input"] | undefined },
        ) => T["_output"] | undefined

      Returns ZodCatch<ZodOptional<T>>

    • Parameters

      • description: string

      Returns this

    • Returns boolean

    • Returns boolean

    • Parameters

      Returns T["_output"] | undefined

    • Parameters

      Returns Promise<T["_output"] | undefined>

    • Returns T