Function useInjectable

  • A higher-order function that takes a function as an argument and returns a new function that can be injected with dependencies. The injected function behaves the same way as the original function but with additional functionality.

    Type Parameters

    • F extends Func

    Parameters

    • fn: F

      The function to be made injectable.

    Returns F

    • A new function that can be injected with dependencies.

Generated using TypeDoc