@types/node-hook
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/node-hook

Weekly Downloads

181

Version

1.0.3

License

MIT

Unpacked Size

3.33 kB

Total Files

5

Last publish

Collaborators

  • types