Skip to content
Snippets Groups Projects
Commit e6daedf1 authored by Sigmund, Dominik's avatar Sigmund, Dominik
Browse files

Better TypeScript Support

parent 78589694
No related branches found
Tags 3.1.6
No related merge requests found
Pipeline #66016 failed
......@@ -9,6 +9,7 @@ export class Log {
log(...message: any): string;
error(...message: any): string;
}
export function createLogger(config?: LogConfig): Log;
export interface LogConfig {
name?: string;
hostname?: string;
......
......@@ -190,4 +190,8 @@ function Log (options) {
}
return this
}
module.exports = Log
function createLogger (options) {
return new Log(options)
}
module.exports = {Log, createLogger}
{
"name": "@libs/log",
"version": "3.1.5",
"version": "3.1.6",
"description": "A simple Logger with Options!",
"main": "index.js",
"scripts": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment