1
0
mirror of https://git.stamm.me/OpenServer/NodeLogging.git synced 2024-11-15 02:41:04 +00:00

Fixing undefined type on default export

This commit is contained in:
Fabian Stamm 2018-09-28 12:03:48 +02:00
parent 19097d2831
commit 51c519ce75
4 changed files with 4 additions and 4 deletions

2
out/index.d.ts vendored
View File

@ -70,7 +70,7 @@ export declare class LoggingBase {
private writeToErrorFile; private writeToErrorFile;
private initializeFile; private initializeFile;
} }
export declare let Logging: any; export declare let Logging: LoggingBase;
export default Logging; export default Logging;
export declare enum LoggingTypes { export declare enum LoggingTypes {
Log = 0, Log = 0,

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "@hibas123/nodelogging", "name": "@hibas123/nodelogging",
"version": "1.3.13", "version": "1.3.14",
"description": "", "description": "",
"main": "out/index.js", "main": "out/index.js",
"types": "out/index.d.ts", "types": "out/index.d.ts",

View File

@ -292,7 +292,7 @@ export class LoggingBase {
} }
} }
export let Logging = undefined; export let Logging: LoggingBase = undefined;
if (process.env.LOGGING_NO_DEFAULT !== "true") { if (process.env.LOGGING_NO_DEFAULT !== "true") {
Logging = new LoggingBase(); Logging = new LoggingBase();
} }