Type alias ApplyOperationsCallback

ApplyOperationsCallback: ((input, output, options, issues) => Result | Promise<Result>)

A callback that applies operations to the shape output.

Type declaration

    • (input, output, options, issues): Result | Promise<Result>
    • Parameters

      • input: unknown

        The input value to which the shape was applied.

      • output: unknown

        The output value to which the operation must be applied.

      • options: ParseOptions

        Parsing options.

      • issues: Issue[] | null

        The mutable array of issues captured by a shape, or null if there were no issues raised yet.

      Returns Result | Promise<Result>

Returns

The result of the operation.