source: frontend/node_modules/v8-to-istanbul/index.d.ts

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 680 bytes
Line 
1/// <reference types="node" />
2
3import { Profiler } from 'inspector'
4import { CoverageMapData } from 'istanbul-lib-coverage'
5import { RawSourceMap } from 'source-map'
6
7declare type Sources =
8 | {
9 source: string
10 }
11 | {
12 source: string
13 originalSource: string
14 sourceMap: { sourcemap: RawSourceMap }
15 }
16declare class V8ToIstanbul {
17 load(): Promise<void>
18 destroy(): void
19 applyCoverage(blocks: ReadonlyArray<Profiler.FunctionCoverage>): void
20 toIstanbul(): CoverageMapData
21}
22
23declare function v8ToIstanbul(scriptPath: string, wrapperLength?: number, sources?: Sources, excludePath?: (path: string) => boolean): V8ToIstanbul
24
25export = v8ToIstanbul
Note: See TracBrowser for help on using the repository browser.