Installation
npm install --save @types/node-hook
Summary
This package contains type definitions for node-hook (https://github.com/bahmutov/node-hook#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-hook.
index.d.ts
interface Options {
verbose?: boolean | undefined;
}
type Transform = (source: string, filename: string) => string;
interface NodeHook {
hook: {
(extension: string, transform: Transform, options?: Options): void;
(transform: Transform, _?: undefined, options?: Options): void;
};
unhook(extension?: string): void;
}
declare const hook: NodeHook;
export = hook;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Nathan Hardy.