File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 1- import { IClientOptions , MqttClient } from ' ../client'
1+ import { IClientOptions , MqttClient } from " ../client" ;
22/**
33 * connect - connect to an MQTT broker.
44 *
5- * @param {String } [brokerUrl] - url of the broker, optional
5+ * @param {String } brokerUrl - url of the broker
6+ */
7+ declare function connect ( brokerUrl : string ) : MqttClient ;
8+
9+ /**
10+ * connect - connect to an MQTT broker.
11+ *
12+ * @param {Object } opts - see MqttClient#constructor
13+ */
14+ declare function connect ( opts : IClientOptions ) : MqttClient ;
15+
16+ /**
17+ * connect - connect to an MQTT broker.
18+ *
19+ * @param {String } brokerUrl - url of the broker
620 * @param {Object } opts - see MqttClient#constructor
721 */
8- declare function connect ( brokerUrl ?: string | any , opts ?: IClientOptions ) : MqttClient
9- export { connect }
10- export { MqttClient }
22+ declare function connect ( brokerUrl : string , opts : IClientOptions ) : MqttClient ;
23+
24+ export { connect } ;
25+ export { MqttClient } ;
You can’t perform that action at this time.
0 commit comments