Browser now has strongly typed on method (#9648)

This commit is contained in:
Chris Dell
2016-06-19 02:28:19 +01:00
committed by Masahiro Wakame
parent f1e58fbffa
commit 62fcf9596e

3
mdns/mdns.d.ts vendored
View File

@@ -49,6 +49,9 @@ declare namespace MDNS {
interface Browser extends NodeJS.EventEmitter {
start():any;
stop():any;
on(event:string, listener:Function):this;
on(event:'serviceUp', listener:(info:Service)=>void):this;
on(event:'serviceDown', listener:(info:Service)=>void):this;
}
interface BrowserStatic {