bonjour: add missing options (#42524)

This commit is contained in:
Jeremy Apthorp
2020-02-25 10:59:35 -08:00
committed by GitHub
parent 1d7c9d2ee0
commit 4c8ea29856

View File

@@ -47,6 +47,7 @@ declare namespace bonjour {
subtypes?: string[];
protocol?: 'udp'|'tcp';
txt?: Object;
probe?: boolean;
}
interface Service extends NodeJS.EventEmitter {
@@ -64,6 +65,7 @@ declare namespace bonjour {
start(): void;
}
interface BonjourOptions {
type?: 'udp4' | 'udp6';
multicast?: boolean;
interface?: string;
port?: number;