Type Alias TCallbacksAction<Parameter>

TCallbacksAction: Parameter extends undefined
    ? () => void
    : (arg: Parameter) => void

Defines a callback function's signature.

  • If Parameter is undefined, the callback takes no arguments.
  • Otherwise, it takes a single argument of type Parameter.

Type Parameters

  • Parameter