event-hooks-webpack-plugin
Version:
Execute JavaScript on any available Webpack event hook
6 lines (5 loc) • 495 B
TypeScript
import { Hooks, TapMethod, WithTapSymbol } from './types.js';
export declare const addSymbol: <T extends Hooks[keyof Hooks], V extends TapMethod>(hook: T, value: V) => WithTapSymbol<T, V>;
export declare const tap: <T extends Hooks[keyof Hooks]>(hook: T) => WithTapSymbol<T, "tap">;
export declare const tapPromise: <T extends Hooks[keyof Hooks]>(hook: T) => WithTapSymbol<T, "tapPromise">;
export declare const tapAsync: <T extends Hooks[keyof Hooks]>(hook: T) => WithTapSymbol<T, "tapAsync">;