Type alias ApplyOperationsCallback

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

Type declaration

    • (input, output, options, issues): Result | Promise<Result>
    • A callback that applies operations to the shape output.

      Parameters

      • input: unknown

        The input value to which the shape was applied.

      • output: unknown

        The shape output value to which the operation must be applied.

      • options: ApplyOptions

        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>

      The result of the operation.