Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RegExpCallback<A>

Callback that executes when a vacancy matches a regex pattern.

Type parameters

  • A

    The type of object that you'll dispatch to your app.

Callable

  • Callback that executes when a vacancy matches a regex pattern.

    Parameters

    • matchArray: RegExpMatchArray

      The result of matching the vacancy with the regex.

    • dispatch: Dispatcher<A>

      Dispatches data to your app.

    • exit: ExitPromise

      Called when all matching vacancies have left the DOM.

    Returns void | Promise<void>

Generated using TypeDoc