Skip to content

Commit

Permalink
fix: better typings for EventEmitter inheritance (QuorumDMS#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLuq authored and trs committed Jul 24, 2018
1 parent 91be338 commit 30ae54a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ftp-srv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class FtpServer extends EventEmitter {

emitPromise(action: any, ...data: any[]): Promise<any>;

emit(action: any, ...data: any[]): void;
// emit is exported from super class

setupTLS(_tls: boolean): boolean | {
cert: string;
Expand Down Expand Up @@ -108,15 +108,15 @@ export class FtpServer extends EventEmitter {
whitelist?: Array<string>
}) => void,
reject: (err?: Error) => void
) => void): EventEmitter;
) => void): this;

on(event: "client-error", listener: (
data: {
connection: FtpConnection,
context: string,
error: Error,
}
) => void): EventEmitter;
) => void): this;
}

export {FtpServer as FtpSrv};
Expand Down

0 comments on commit 30ae54a

Please sign in to comment.