Type Alias AfterCallback<A, R>

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

Code to run after the original function

Type Parameters

  • A extends unknown[] = unknown[]
  • R = unknown

Type declaration

    • (args, res, self): R | undefined | void
    • 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