@types/istanbul-reports
TypeScript definitions for istanbul-reports
Last updated 7 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ gnpm install @types/istanbul-reports 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/istanbul-reports

Summary

This package contains type definitions for istanbul-reports (https://github.com/istanbuljs/istanbuljs).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/istanbul-reports.

index.d.ts

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

Credits

These definitions were written by Jason Cheatham, and Elena Shcherbakova.

Current Tags

  • 3.0.4                                ...           latest (a year ago)
  • 1.1.1                                ...           ts2.4 (5 years ago)
  • 1.1.1                                ...           ts2.5 (5 years ago)
  • 1.1.1                                ...           ts2.6 (5 years ago)
  • 1.1.1                                ...           ts2.7 (5 years ago)
  • 1.1.1                                ...           ts2.8 (5 years ago)
  • 1.1.1                                ...           ts2.9 (5 years ago)
  • 3.0.0                                ...           ts3.0 (4 years ago)
  • 3.0.0                                ...           ts3.1 (4 years ago)
  • 3.0.0                                ...           ts3.2 (4 years ago)
  • 3.0.0                                ...           ts3.3 (4 years ago)
  • 3.0.0                                ...           ts3.4 (4 years ago)
  • 3.0.0                                ...           ts3.5 (4 years ago)
  • 3.0.1                                ...           ts3.6 (3 years ago)
  • 3.0.1                                ...           ts3.7 (3 years ago)
  • 3.0.1                                ...           ts3.8 (3 years ago)
  • 3.0.1                                ...           ts3.9 (3 years ago)
  • 3.0.1                                ...           ts4.0 (3 years ago)
  • 3.0.1                                ...           ts4.1 (3 years ago)
  • 3.0.1                                ...           ts4.2 (3 years ago)
  • 3.0.1                                ...           ts4.3 (3 years ago)
  • 3.0.1                                ...           ts4.4 (3 years ago)
  • 3.0.4                                ...           ts4.5 (a year ago)
  • 3.0.4                                ...           ts4.6 (a year ago)
  • 3.0.4                                ...           ts4.7 (a year ago)
  • 3.0.4                                ...           ts4.8 (a year ago)
  • 3.0.4                                ...           ts4.9 (a year ago)
  • 3.0.4                                ...           ts5.0 (a year ago)
  • 3.0.4                                ...           ts5.1 (a year ago)
  • 3.0.4                                ...           ts5.2 (a year ago)
  • 3.0.4                                ...           ts5.3 (a year ago)
  • 3.0.4                                ...           ts5.4 (a year ago)

8 Versions

  • 3.0.4                                ...           a year ago
  • 3.0.3                                ...           a year ago
  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |