forked from jbaroudi/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma-coverage.d.ts
42 lines (34 loc) · 1.15 KB
/
karma-coverage.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// 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/borisyankov/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;
}