Fix wrong types 2

This commit is contained in:
Fabian Stamm 2020-04-06 11:57:00 +02:00
parent ed35aa17f2
commit facb7e7b40
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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();
}