diff --git a/package.json b/package.json index 2583215..b562c4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/logging", - "version": "2.2.1", + "version": "2.2.2", "description": "", "main": "out/index.js", "types": "out/index.d.ts", diff --git a/src/base.ts b/src/base.ts index cd7d897..71e010c 100644 --- a/src/base.ts +++ b/src/base.ts @@ -180,7 +180,7 @@ export class LoggingBase { this.message(LoggingTypes.Error, message); } - protected getCurrentTime() { + protected getCurrentTime(): any { if (browser && window.performance && window.performance.now) { return window.performance.now(); } else { @@ -200,7 +200,7 @@ export class LoggingBase { } } - time(id?: string, name = id): any { + time(id?: string, name = id) { if (!id) { id = Math.floor(Math.random() * 899999 + 100000).toString(); }