@types/istanbul-lib-hook
- Version 2.0.4
- Published
- 5.01 kB
- No dependencies
- MIT license
Install
npm i @types/istanbul-lib-hook
yarn add @types/istanbul-lib-hook
pnpm add @types/istanbul-lib-hook
Overview
TypeScript definitions for istanbul-lib-hook
Index
Functions
Interfaces
Type Aliases
Functions
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;
Interfaces
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 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.
Badge
To add a badge like this oneto 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[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/istanbul-lib-hook)
- 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>
- Updated .
Package analyzed in 2182 ms. - Missing or incorrect documentation? Open an issue for this package.