@types/istanbul-reports
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -8,5 +8,5 @@ // Type definitions for istanbul-reports 3.0 | ||
import { Node, Visitor } from 'istanbul-lib-report'; | ||
import { Node, ReportBase } from 'istanbul-lib-report'; | ||
export function create<T extends keyof ReportOptions>(name: T, options?: Partial<ReportOptions[T]>): Visitor; | ||
export function create<T extends keyof ReportOptions>(name: T, options?: Partial<ReportOptions[T]>): ReportBase; | ||
@@ -13,0 +13,0 @@ export interface FileOptions { |
{ | ||
"name": "@types/istanbul-reports", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "TypeScript definitions for istanbul-reports", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-reports", | ||
"license": "MIT", | ||
@@ -29,4 +30,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "71342edcc57e7212d17e794fa519955e496dd3b6696e2738904679ef3aa59d70", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "b331eb26db90bca3bd6f1e18a10a4f37631f149624847439756763800996e143", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,83 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-reports. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-reports/index.d.ts) | ||
````ts | ||
// Type definitions for istanbul-reports 3.0 | ||
// Project: https://github.com/istanbuljs/istanbuljs, https://istanbul.js.org | ||
// Definitions by: Jason Cheatham <https://github.com/jason0x43> | ||
// Elena Shcherbakova <https://github.com/not-a-doctor> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.4 | ||
import { Node, ReportBase } from 'istanbul-lib-report'; | ||
export function create<T extends keyof ReportOptions>(name: T, options?: Partial<ReportOptions[T]>): ReportBase; | ||
export interface FileOptions { | ||
file: string; | ||
} | ||
export interface ProjectOptions { | ||
projectRoot: string; | ||
} | ||
export interface ReportOptions { | ||
clover: CloverOptions; | ||
cobertura: CoberturaOptions; | ||
'html-spa': HtmlSpaOptions; | ||
html: HtmlOptions; | ||
json: JsonOptions; | ||
'json-summary': JsonSummaryOptions; | ||
lcov: LcovOptions; | ||
lcovonly: LcovOnlyOptions; | ||
none: never; | ||
teamcity: TeamcityOptions; | ||
text: TextOptions; | ||
'text-lcov': TextLcovOptions; | ||
'text-summary': TextSummaryOptions; | ||
} | ||
export type ReportType = keyof ReportOptions; | ||
export interface CloverOptions extends FileOptions, ProjectOptions {} | ||
export interface CoberturaOptions extends FileOptions, ProjectOptions {} | ||
export interface HtmlSpaOptions extends HtmlOptions { | ||
metricsToShow: Array<'lines' | 'branches' | 'functions' | 'statements'>; | ||
} | ||
export interface HtmlOptions { | ||
verbose: boolean; | ||
skipEmpty: boolean; | ||
subdir: string; | ||
linkMapper: LinkMapper; | ||
} | ||
export type JsonOptions = FileOptions; | ||
export type JsonSummaryOptions = FileOptions; | ||
export interface LcovOptions extends FileOptions, ProjectOptions {} | ||
export interface LcovOnlyOptions extends FileOptions, ProjectOptions {} | ||
export interface TeamcityOptions extends FileOptions { | ||
blockName: string; | ||
} | ||
export interface TextOptions extends FileOptions { | ||
maxCols: number; | ||
skipEmpty: boolean; | ||
skipFull: boolean; | ||
} | ||
export type TextLcovOptions = ProjectOptions; | ||
export type TextSummaryOptions = FileOptions; | ||
export interface LinkMapper { | ||
getPath(node: string | Node): string; | ||
relativePath(source: string | Node, target: string | Node): string; | ||
assetPath(node: Node, name: string): string; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 20 Jul 2020 21:55:27 GMT | ||
* Last updated: Tue, 01 Jun 2021 21:02:19 GMT | ||
* Dependencies: [@types/istanbul-lib-report](https://npmjs.com/package/@types/istanbul-lib-report) | ||
@@ -14,0 +92,0 @@ * Global values: none |
7415
95