From facb7e7b403e1dfaa8790426259e6effb0618efb Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Mon, 6 Apr 2020 11:57:00 +0200 Subject: [PATCH] Fix wrong types 2 --- package.json | 2 +- src/base.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); }