Skip to content

Commit

Permalink
feat: add ts declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Jun 22, 2018
1 parent 2941e59 commit c4afb17
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/ilp-logger/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/// <reference types="node" />

declare module 'ilp-logger' {
class Logger {
private debugInfo;
private debugWarn;
private debugError;
private debugger;
private tracer;
constructor(namespace: string);
info(...msg: any[]): void;
warn(...msg: any[]): void;
error(...msg: any[]): void;
debug(...msg: any[]): void;
trace(...msg: any[]): void;
}
function createLogger(namespace: string): Logger;

export = createLogger
}

0 comments on commit c4afb17

Please sign in to comment.