From c1c2e6d680de65188c20168fd941611a2889fee5 Mon Sep 17 00:00:00 2001 From: Ulrich Buchgraber Date: Wed, 18 Dec 2019 16:57:59 +0100 Subject: [PATCH] Fix "Initializers are not allowed in ambient contexts" in TS 2.9 Note that current TS versions would allow the initiaizers in declarations. --- index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index ae79dde6..f94fcabc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -38,11 +38,11 @@ export class InMemoryWebStorage { } export class Log { - static readonly NONE = 0; - static readonly ERROR = 1; - static readonly WARN = 2; - static readonly INFO = 3; - static readonly DEBUG = 4; + static readonly NONE: 0; + static readonly ERROR: 1; + static readonly WARN: 2; + static readonly INFO: 3; + static readonly DEBUG: 4; static reset(): void;