mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 09:25:50 +08:00
25 lines
686 B
TypeScript
25 lines
686 B
TypeScript
// Type definitions for karma v0.12.37
|
|
// Project: https://github.com/karma-runner/karma
|
|
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module 'karma' {
|
|
// See Karma public API https://karma-runner.github.io/0.12/dev/public-api.html
|
|
|
|
interface IKarmaServer {
|
|
start(options?: any, callback?: (exitCode: number) => void): void;
|
|
}
|
|
|
|
interface IKarmaRunner {
|
|
run(options?: any, callback?: (exitCode: number) => void): void;
|
|
}
|
|
|
|
interface IKarma {
|
|
server: IKarmaServer;
|
|
runner: IKarmaRunner;
|
|
}
|
|
|
|
var karma: IKarma;
|
|
export = karma;
|
|
}
|