mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-21 17:20:32 +08:00
24 lines
690 B
TypeScript
24 lines
690 B
TypeScript
// Type definitions for slack-winston 0.0
|
|
// Project: https://github.com/niftylettuce/slack-winston
|
|
// Definitions by: Elliot Blackburn <https://github.com/BlueHatbRit>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import * as winston from 'winston';
|
|
|
|
export interface SlackTransportOptions extends winston.WinstonModuleTransportOptions {
|
|
domain: string;
|
|
token: string;
|
|
webhook_url: string;
|
|
channel: string;
|
|
|
|
username?: string;
|
|
icon_emoji?: string;
|
|
message?: string;
|
|
queueDelay?: number;
|
|
}
|
|
|
|
export class Slack extends winston.Transport implements winston.TransportInstance {
|
|
constructor(options?: SlackTransportOptions);
|
|
}
|