Skip to content

Instantly share code, notes, and snippets.

@okunokentaro
Created September 24, 2015 09:51
Show Gist options
  • Save okunokentaro/5df0d1f5d64035a92135 to your computer and use it in GitHub Desktop.
Save okunokentaro/5df0d1f5d64035a92135 to your computer and use it in GitHub Desktop.
cw-log.d.ts
/**
* 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