UNPKG

@types/istanbul-lib-source-maps

Version:
56 lines (45 loc) 1.89 kB
# Installation > `npm install --save @types/istanbul-lib-source-maps` # Summary This package contains type definitions for istanbul-lib-source-maps (https://istanbul.js.org). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-lib-source-maps. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-lib-source-maps/index.d.ts) ````ts import { CoverageMap } from "istanbul-lib-coverage"; import { RawSourceMap } from "source-map"; export function createSourceMapStore(options?: Partial<MapStoreOptions>): MapStore; export interface MapStoreOptions { verbose: boolean; baseDir: string; sourceStore: "memory" | "file"; tmpdir: string; } export interface MapStore { baseDir: string | null; verbose: boolean; sourceStore: SourceStore; data: { [filepath: string]: { type: string; data: any; }; }; registerURL(transformedFilePath: string, sourceMapUrl: string): void; registerMap(filename: string, sourceMap: RawSourceMap): void; getSourceMapSync(filePath: string): any; addInputSourceMapsSync(coverageData: any): void; sourceFinder(filePath: string): string; transformCoverage(coverageMap: CoverageMap): Promise<CoverageMap>; dispose(): void; } export class SourceStore { getSource(filepath: string): string | null; registerSource(filepath: string, sourceText: string): void; } ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 03:09:37 GMT * Dependencies: [@types/istanbul-lib-coverage](https://npmjs.com/package/@types/istanbul-lib-coverage), [source-map](https://npmjs.com/package/source-map) # Credits These definitions were written by [Jason Cheatham](https://github.com/jason0x43), and [Sridhar Mallela](https://github.com/sridharmallela).