Skip to content

Commit 0259eb0

Browse files
authored
🤖 Merge PR DefinitelyTyped#73228 chore: improve type definitions for istanbul-lib-instrument by @travzhang
1 parent f5239c7 commit 0259eb0

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎types/istanbul-lib-instrument/index.d.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as babelTypes from "babel-types";
2+
import { GeneratorOptions } from "babel-generator";
23
import { FileCoverage, FileCoverageData, Range } from "istanbul-lib-coverage";
34
import { RawSourceMap } from "source-map";
45

@@ -11,6 +12,11 @@ export interface InstrumenterOptions {
1112
produceSourceMap: boolean;
1213
sourceMapUrlCallback(filename: string, url: string): void;
1314
debug: boolean;
15+
coverageGlobalScope?: string;
16+
coverageGlobalScopeFunc?: boolean;
17+
ignoreClassMethods?: string[];
18+
parserPlugins?: any[];
19+
generatorOpts?: GeneratorOptions;
1420
}
1521

1622
export type InstrumenterCallback = (error: Error | null, code: string) => void;

‎types/istanbul-lib-instrument/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
],
99
"dependencies": {
1010
"@types/babel-types": "*",
11+
"@types/babel-generator": "*",
1112
"@types/istanbul-lib-coverage": "*",
1213
"source-map": "^0.6.1"
1314
},

0 commit comments

Comments
 (0)