0.0.7 • Published 6 months ago
@types/slack-winston v0.0.7
Installation
npm install --save @types/slack-winston
Summary
This package contains type definitions for slack-winston (https://github.com/niftylettuce/slack-winston).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slack-winston.
index.d.ts
// 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
export interface SlackTransportOptions {
domain: string;
token: string;
webhook_url: string;
channel: string;
username?: string | undefined;
icon_emoji?: string | undefined;
message?: string | undefined;
queueDelay?: number | undefined;
// from winston-transport TransportStreamOptions
format?: Format | undefined;
level?: string | undefined;
silent?: boolean | undefined;
handleExceptions?: boolean | undefined;
log?(info: any, next: () => void): any;
logv?(info: any, next: () => void): any;
close?(): void;
}
export class Slack {
constructor(options?: SlackTransportOptions);
format?: Format | undefined;
level?: string | undefined;
silent?: boolean | undefined;
handleExceptions?: boolean | undefined;
log?(info: any, next: () => void): any;
logv?(info: any, next: () => void): any;
close?(): void;
}
export class Format {
constructor(opts?: object);
options?: object | undefined;
transform: (info: TransformableInfo, opts?: any) => TransformableInfo | boolean;
}
export interface TransformableInfo {
level: string;
message: string;
[key: string]: any;
}
Additional Details
- Last updated: Tue, 06 Jul 2021 16:34:56 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Elliot Blackburn.