mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
// Type definitions for karma-coverage v0.5.3
|
|
// Project: https://github.com/karma-runner/karma-coverage
|
|
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../karma/karma.d.ts" />
|
|
/// <reference path="../istanbul/istanbul.d.ts" />
|
|
|
|
declare module 'karma-coverage' {
|
|
import * as karma from 'karma';
|
|
import * as istanbul from 'istanbul';
|
|
|
|
namespace karmaCoverage {
|
|
interface Karma extends karma.Karma {}
|
|
|
|
interface Config extends karma.Config {
|
|
set: (config: ConfigOptions) => void;
|
|
}
|
|
|
|
interface ConfigOptions extends karma.ConfigOptions {
|
|
/**
|
|
* See https://github.com/karma-runner/karma-coverage/blob/master/docs/configuration.md
|
|
*/
|
|
coverageReporter?: (Reporter|Reporter[]);
|
|
}
|
|
|
|
interface Reporter {
|
|
type?: string;
|
|
dir?: string;
|
|
subdir?: string | ((browser: string) => string);
|
|
check?: any;
|
|
watermarks?: any;
|
|
includeAllSources?: boolean;
|
|
sourceStore?: istanbul.Store;
|
|
instrumenter?: any;
|
|
}
|
|
}
|
|
|
|
var karmaCoverage: karmaCoverage.Karma;
|
|
|
|
export = karmaCoverage;
|
|
}
|