Fix wrong types 2
This commit is contained in:
parent
ed35aa17f2
commit
facb7e7b40
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hibas123/logging",
|
"name": "@hibas123/logging",
|
||||||
"version": "2.2.1",
|
"version": "2.2.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "out/index.js",
|
"main": "out/index.js",
|
||||||
"types": "out/index.d.ts",
|
"types": "out/index.d.ts",
|
||||||
|
@ -180,7 +180,7 @@ export class LoggingBase {
|
|||||||
this.message(LoggingTypes.Error, message);
|
this.message(LoggingTypes.Error, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected getCurrentTime() {
|
protected getCurrentTime(): any {
|
||||||
if (browser && window.performance && window.performance.now) {
|
if (browser && window.performance && window.performance.now) {
|
||||||
return window.performance.now();
|
return window.performance.now();
|
||||||
} else {
|
} else {
|
||||||
@ -200,7 +200,7 @@ export class LoggingBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
time(id?: string, name = id): any {
|
time(id?: string, name = id) {
|
||||||
if (!id) {
|
if (!id) {
|
||||||
id = Math.floor(Math.random() * 899999 + 100000).toString();
|
id = Math.floor(Math.random() * 899999 + 100000).toString();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user