Type alias Submitter<TValue, TResult>

Submitter<TValue, TResult>: ((this, data, control) => Promise<TResult>)

Type Parameters

  • TValue

    Input value type.

  • TResult

    Submit result value type.

Type declaration

    • (this, data, control): Promise<TResult>
    • Input submitter function interface.

      A submitter is passed to InSubmit.submit() method to perform the actual submit.

      A submit failure (a returned promise rejection) is reported as validation messages. This can be either a [InSubmitError], or arbitrary error. Previously reported submit messages are replaced by the reported ones, and cleared on a new submit.

      Parameters

      • this: void
      • data: TValue extends undefined
            ? never
            : TValue
      • control: InControl<TValue>

      Returns Promise<TResult>

Generated using TypeDoc