Created
September 24, 2015 09:51
-
-
Save okunokentaro/5df0d1f5d64035a92135 to your computer and use it in GitHub Desktop.
cw-log.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* cw-log | |
* | |
* @copyright © 2015 OKUNOKENTARO | |
* @since cw-log v 0.1.0 (Mar 5, 2015) | |
*/ | |
declare module 'cw-log' { | |
export default cw; | |
} | |
declare namespace cw { | |
export function logger(level: number): Log; | |
export function t(): string; // timestamp | |
export interface Log { | |
t(): string; | |
trace(...args: any[]): void; | |
debug(...args: any[]): void; | |
info(...args: any[]): void; | |
warn(...args: any[]): void; | |
error(...args: any[]): void; | |
fatal(...args: any[]): void; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment