Function withState

  • Create a function with an attached state object.

    Returns

    CallbackWithState

    Type Parameters

    • Fn extends ((...args: any[]) => any)

    • State extends object

    Parameters

    • fn: Fn

      fn

    • state: State

      state

    Returns CallbackWithState<Fn, State>

Generated using TypeDoc