mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Browser now has strongly typed on method (#9648)
This commit is contained in:
committed by
Masahiro Wakame
parent
f1e58fbffa
commit
62fcf9596e
3
mdns/mdns.d.ts
vendored
3
mdns/mdns.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user