From be1f3e0efb5dd02f81ea25ac40a0c5c95bbb378e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Kov=C3=A1cs?= Date: Wed, 5 Apr 2017 08:37:49 +0200 Subject: [PATCH] [karma] Add constants object to karma module --- types/karma/index.d.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/types/karma/index.d.ts b/types/karma/index.d.ts index 7755011ca6..59590b0a6d 100644 --- a/types/karma/index.d.ts +++ b/types/karma/index.d.ts @@ -28,8 +28,33 @@ declare namespace karma { stopper: Stopper; launcher: Launcher; VERSION: string; + constants: Constants; } + interface Constants { + VERSION: string; + DEFAULT_PORT: number; + DEFAULT_HOSTNAME: string; + DEFAULT_LISTEN_ADDR: string; + LOG_DISABLE: string; + LOG_ERROR: string; + LOG_WARN: string; + LOG_INFO: string; + LOG_DEBUG: string; + LOG_LOG: string; + LOG_PRIORITIES: string[]; + COLOR_PATTERN: string; + NO_COLOR_PATTERN: string; + CONSOLE_APPENDER: { + type: string; + layout: { + type: string; + pattern: string; + }; + }; + EXIT_CODE: string; + } + interface LauncherStatic { generateId(): string; //TODO: injector should be of type `di.Injector`