1.0.3 • Published 6 months ago

@types/node-hook v1.0.3

Weekly downloads
80
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for node-hook 1.0
// Project: https://github.com/bahmutov/node-hook#readme
// Definitions by: Nathan Hardy <https://github.com/nhardy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 18:51:20 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Nathan Hardy.

1.0.2

7 months ago

1.0.3

6 months ago

1.0.1

3 years ago

1.0.0

4 years ago