Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/karma-coverage

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/karma-coverage - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

58

karma-coverage/index.d.ts

@@ -16,3 +16,3 @@ // Type definitions for karma-coverage 2.0

*/
coverageReporter?: KarmaCoverageReporter & { reporters?: KarmaCoverageReporter[] };
coverageReporter?: KarmaCoverageReporter & { reporters?: KarmaCoverageReporter[] | undefined } | undefined;
}

@@ -36,26 +36,26 @@

type: ReporterType;
dir?: string;
subdir?: string | ((browser: string) => string);
file?: string;
dir?: string | undefined;
subdir?: string | ((browser: string) => string) | undefined;
file?: string | undefined;
}
interface CheckTresholds {
global?: Tresholds;
each?: Tresholds;
global?: Tresholds | undefined;
each?: Tresholds | undefined;
}
interface Tresholds {
statements?: number;
branches?: number;
functions?: number;
lines?: number;
excludes?: string[];
overrides?: Record<string, Tresholds>;
statements?: number | undefined;
branches?: number | undefined;
functions?: number | undefined;
lines?: number | undefined;
excludes?: string[] | undefined;
overrides?: Record<string, Tresholds> | undefined;
}
interface Watermarks {
statements?: [number, number];
functions?: [number, number];
branches?: [number, number];
lines?: [number, number];
statements?: [number, number] | undefined;
functions?: [number, number] | undefined;
branches?: [number, number] | undefined;
lines?: [number, number] | undefined;
}

@@ -65,18 +65,18 @@

/** Specify a reporter type */
type?: ReporterType;
type?: ReporterType | undefined;
/** This will be used to output coverage reports. When you set a relative path, the directory is resolved against the basePath. */
dir?: string;
dir?: string | undefined;
/** This will be used in complement of the coverageReporter.dir option to generate the full output directory path */
subdir?: string | ((browser: string) => string);
subdir?: string | ((browser: string) => string) | undefined;
/** If you use one of these reporters, `cobertura`, `lcovonly`, `teamcity`, `text` or `text-summary`, you may set the file option to specify the output file */
file?: string;
file?: string | undefined;
/** This will be used to configure minimum threshold enforcement for coverage results */
check?: CheckTresholds;
check?: CheckTresholds | undefined;
/** This will be used to set the coverage threshold colors */
watermarks?: Watermarks;
watermarks?: Watermarks | undefined;
/**

@@ -86,9 +86,9 @@ * You can opt to include all sources files, as indicated by the coverage preprocessor,

*/
includeAllSources?: boolean;
includeAllSources?: boolean | undefined;
/** You can opt to specify a source store allowing for external coverage collectors access to the instrumented code. */
sourceStore?: Store;
sourceStore?: Store | undefined;
/** You can use multiple reporters, by providing array of options */
reporters?: Reporter[];
reporters?: Reporter[] | undefined;
/**

@@ -101,7 +101,7 @@ * Karma-coverage can infers the instrumenter regarding of the file extension.

[key: string]: string;
};
} | undefined;
instrumenters?: Record<string, any>;
instrumenters?: Record<string, any> | undefined;
instrumenterOptions?: Record<string, Record<string, unknown>>;
instrumenterOptions?: Record<string, Record<string, unknown>> | undefined;

@@ -113,3 +113,3 @@ /**

*/
useJSExtensionForCoffeeScript?: boolean;
useJSExtensionForCoffeeScript?: boolean | undefined;

@@ -116,0 +116,0 @@ [moreSettings: string]: unknown;

{
"name": "@types/karma-coverage",
"version": "2.0.0",
"version": "2.0.1",
"description": "TypeScript definitions for karma-coverage",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/karma-coverage",
"license": "MIT",

@@ -35,4 +36,4 @@ "contributors": [

},
"typesPublisherContentHash": "1457f748fefd3c829a297d50c8b8302a37b7a2fa0031ec413c2c5bfd65b78952",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "f0369e89848751b44d2f5acbb62d3c136fabf01485f0d5644db98ea398193332",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 25 Mar 2021 20:31:59 GMT
* Last updated: Tue, 06 Jul 2021 22:02:35 GMT
* Dependencies: [@types/karma](https://npmjs.com/package/@types/karma), [@types/istanbul](https://npmjs.com/package/@types/istanbul)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc