diff --git a/types/winston-syslog/index.d.ts b/types/winston-syslog/index.d.ts index bd0ee54cdf..d1517cc957 100644 --- a/types/winston-syslog/index.d.ts +++ b/types/winston-syslog/index.d.ts @@ -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 // 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;