0.9.37 • Published 2 years ago

@types/gulp-istanbul v0.9.37

Weekly downloads
2,911
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/gulp-istanbul

Summary

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

Details

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

index.d.ts

// Type definitions for gulp-istanbul v0.9.0
// Project: https://github.com/SBoudrias/gulp-istanbul
// Definitions by: Asana <https://asana.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node"/>


declare function GulpIstanbul(opts?: GulpIstanbul.Options): NodeJS.ReadWriteStream;

declare namespace GulpIstanbul {
    export function hookRequire(): NodeJS.ReadWriteStream;
    export function summarizeCoverage(opts?: { coverageVariable?: string | undefined }): Coverage;
    export function writeReports(opts?: ReportOptions): NodeJS.ReadWriteStream;
    export function enforceThresholds(opts?: ThresholdOptions): NodeJS.ReadWriteStream;

    interface Options {
        coverageVariable?: string | undefined;
        includeUntested?: boolean | undefined;
        embedSource?: boolean | undefined;
        preserveComments?: boolean | undefined;
        noCompact?: boolean | undefined;
        noAutoWrap?: boolean | undefined;
        codeGenerationOptions?: Object | undefined;
        debug?: boolean | undefined;
        walkDebug?: boolean | undefined;
    }

    interface Coverage {
        lines: CoverageStats;
        statements: CoverageStats;
        functions: CoverageStats;
        branches: CoverageStats;
    }

    interface CoverageStats {
        total: number;
        covered: number;
        skipped: number;
        pct: number;
    }

    interface ReportOptions {
        dir?: string | undefined;
        reporters?: string[] | undefined;
        reportOpts?: { dir?: string | undefined } | undefined;
        coverageVariable?: string | undefined;
    }

    interface ThresholdOptions {
        coverageVariable?: string | undefined;
        thresholds?: { global?: CoverageOptions | number | undefined; each?: CoverageOptions | number | undefined } | undefined;
    }

    interface CoverageOptions {
        lines?: number | undefined;
        statements?: number | undefined;
        functions?: number | undefined;
        branches?: number | undefined;
    }
}

export = GulpIstanbul;

Additional Details

  • Last updated: Thu, 08 Jul 2021 14:22:28 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Asana.

0.9.35

2 years ago

0.9.36

2 years ago

0.9.37

2 years ago

0.9.34

2 years ago

0.9.33

4 years ago

0.9.32

8 years ago

0.9.31

8 years ago

0.9.30

9 years ago

0.9.29

9 years ago

0.9.28

9 years ago

0.9.27-alpha

9 years ago

0.9.26-alpha

9 years ago

0.9.25-alpha

9 years ago

0.9.24-alpha

9 years ago

0.9.23-alpha

9 years ago

0.9.22-alpha

9 years ago

0.9.21-alpha

9 years ago

0.9.16-alpha

9 years ago

0.9.15-alpha

9 years ago