mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
Fix some linting issues.
This commit is contained in:
Vendored
+18
-22
@@ -1,4 +1,4 @@
|
||||
// Type definitions for winston-syslog v2.0.0
|
||||
// Type definitions for winston-syslog 2.0
|
||||
// Project: https://github.com/winstonjs/winston-syslog
|
||||
// Definitions by: Felix Hochgruber <https://github.com/felix-hoc>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -7,30 +7,26 @@ import * as Transport from 'winston-transport';
|
||||
import * as dgram from 'dgram';
|
||||
import * as net from 'net';
|
||||
|
||||
declare module 'winston-syslog' {
|
||||
export interface SyslogTransportOptions extends Transport.TransportStreamOptions {
|
||||
host?: string;
|
||||
port?: number;
|
||||
path?: string;
|
||||
protocol?: string;
|
||||
pid?: number;
|
||||
facility?: string;
|
||||
localhost?: string;
|
||||
type?: string;
|
||||
app_name?: string;
|
||||
eol?: string;
|
||||
}
|
||||
|
||||
export interface SyslogTransportOptions extends Transport.TransportStreamOptions {
|
||||
host?: string;
|
||||
port?: number;
|
||||
path?: string;
|
||||
protocol?: string;
|
||||
pid?: number;
|
||||
facility?: string;
|
||||
localhost?: string;
|
||||
type?: string;
|
||||
app_name?: string;
|
||||
eol?: string;
|
||||
}
|
||||
export interface SyslogTransportInstance extends Transport {
|
||||
producer: any;
|
||||
socket: dgram.Socket | net.Socket;
|
||||
|
||||
interface SyslogTransportInstance extends Transport {
|
||||
connect(callback: (err: (true | null)) => any): void;
|
||||
|
||||
producer: any;
|
||||
socket: dgram.Socket | net.Socket;
|
||||
|
||||
connect(callback: (err: (true | null)) => any): void;
|
||||
|
||||
new(options?: SyslogTransportOptions): SyslogTransportInstance;
|
||||
}
|
||||
new(options?: SyslogTransportOptions): SyslogTransportInstance;
|
||||
}
|
||||
|
||||
export const Syslog: SyslogTransportInstance;
|
||||
|
||||
Reference in New Issue
Block a user