mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
first batch: the easy pickings - as per https://github.com/borisyankov/DefinitelyTyped/issues/115 - added DT headers (scraped creators from git history) - added tests - some modifications - added CONTRIBUTORS.md for the substantial defs (>50 LOC)
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
// Type definitions for winston
|
|
// Project: https://github.com/flatiron/winston
|
|
// Definitions by: bonnici <https://github.com/bonnici>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
// Imported from: https://github.com/soywiz/typescript-node-definitions/winston.d.ts
|
|
|
|
declare module "winston" {
|
|
export function log(level: string, message: string, metadata?: any): void;
|
|
export function debug(message: string, metadata?: any): void;
|
|
export function info(message: string, metadata?: any): void;
|
|
export function warn(message: string, metadata?: any): void;
|
|
export function error(message: string, metadata?: any): void;
|
|
|
|
export function add(transport: Transport, options: any): void;
|
|
export function remove(transport: Transport): void;
|
|
|
|
export function profile(name: string): void;
|
|
|
|
export function query(options: any, done: (err: any, results: any) => void): void;
|
|
|
|
export function stream(options: any): any;
|
|
|
|
export function handleExceptions(transport: Transport): void;
|
|
|
|
export class Logger {
|
|
|
|
}
|
|
|
|
export interface Transport {
|
|
}
|
|
export interface Transports {
|
|
File: Transport;
|
|
Console: Transport;
|
|
Loggly: Transport;
|
|
}
|
|
export var transports: Transports;
|
|
export var exitOnError: boolean;
|
|
}
|