Type alias AfterCallback<A, R>

AfterCallback<A, R>: ((args, res, self) => R | undefined | void)

Type Parameters

  • A extends unknown[] = unknown[]

  • R = unknown

Type declaration

    • (args, res, self): R | undefined | void
    • Code to run after the original function

      Parameters

      • args: A

        Arguments passed to the original function

      • res: R

        Result of the original function

      • self: ObjectExports

        The module the injected function is on

      Returns R | undefined | void

      New result to return, or undefined to leave it unchanged

Generated using TypeDoc