• Version 2.0.4
  • Published
  • 5.01 kB
  • No dependencies
  • MIT license


npm i @types/istanbul-lib-hook
yarn add @types/istanbul-lib-hook
pnpm add @types/istanbul-lib-hook


TypeScript definitions for istanbul-lib-hook



function hookCreateScript

hookCreateScript: (
matcher: Matcher,
transformer: Transformer,
options?: Partial<Options>
) => void;

    function hookRequire

    hookRequire: (
    matcher: Matcher,
    transformer: Transformer,
    options?: Partial<HookRequireOptions>
    ) => () => void;

      function hookRunInContext

      hookRunInContext: (
      matcher: Matcher,
      transformer: Transformer,
      options?: Partial<HookRunInContextOptions>
      ) => void;

        function hookRunInThisContext

        hookRunInThisContext: (
        matcher: Matcher,
        transformer: Transformer,
        options?: Partial<Options>
        ) => void;

          function unhookCreateScript

          unhookCreateScript: () => void;

            function unhookRunInContext

            unhookRunInContext: () => void;

              function unhookRunInThisContext

              unhookRunInThisContext: () => void;

                function unloadRequireCache

                unloadRequireCache: (matcher: Matcher) => void;


                  interface HookRequireOptions

                  interface HookRequireOptions extends Options {}

                    property extensions

                    extensions: string[];

                      method postLoadHook

                      postLoadHook: (filename: string) => void;

                        interface HookRunInContextOptions

                        interface HookRunInContextOptions extends Options {}

                          property coverageVariable

                          coverageVariable: string;

                            interface Options

                            interface Options {}

                              property verbose

                              verbose: boolean;

                                interface TransformerOptions

                                interface TransformerOptions {}

                                  property filename

                                  filename: string;

                                    Type Aliases

                                    type Matcher

                                    type Matcher = (filename: string) => boolean;

                                      type Transformer

                                      type Transformer = (code: string, options: TransformerOptions) => string;

                                        Package Files (1)

                                        Dependencies (0)

                                        No dependencies.

                                        Dev Dependencies (0)

                                        No dev dependencies.

                                        Peer Dependencies (0)

                                        No peer dependencies.


                                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/istanbul-lib-hook.

                                        • Markdown
                                        • HTML
                                          <a href="https://www.jsdocs.io/package/@types/istanbul-lib-hook"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>