mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
slack-winston: Fix given changes to winston (#29104)
This commit is contained in:
6
types/slack-winston/index.d.ts
vendored
6
types/slack-winston/index.d.ts
vendored
@@ -4,9 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as winston from 'winston';
|
||||
import Transport = require("winston-transport");
|
||||
|
||||
export interface SlackTransportOptions extends winston.WinstonModuleTransportOptions {
|
||||
export interface SlackTransportOptions extends Transport.TransportStreamOptions {
|
||||
domain: string;
|
||||
token: string;
|
||||
webhook_url: string;
|
||||
@@ -18,6 +18,6 @@ export interface SlackTransportOptions extends winston.WinstonModuleTransportOpt
|
||||
queueDelay?: number;
|
||||
}
|
||||
|
||||
export class Slack extends winston.Transport implements winston.TransportInstance {
|
||||
export class Slack extends Transport {
|
||||
constructor(options?: SlackTransportOptions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user