UNPKG

call-hooks

Version:

Function for adding before/after/call/arguments/result hooks to another function.

5 lines (4 loc) 166 B
import type { Hooks } from './types.js'; declare const callHooks: <FN extends Function>(fn: FN, hooks: Hooks) => FN; export default callHooks; export type { Hooks };