diff --git a/src/@awesome-cordova-plugins/plugins/bluetooth-le/index.ts b/src/@awesome-cordova-plugins/plugins/bluetooth-le/index.ts index fb3d9bf9c..7cf9e0c7c 100644 --- a/src/@awesome-cordova-plugins/plugins/bluetooth-le/index.ts +++ b/src/@awesome-cordova-plugins/plugins/bluetooth-le/index.ts @@ -535,10 +535,10 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin { * Retrieved paired Bluetooth LE devices. In iOS, devices that are "paired" to will not return during a normal scan. * Callback is "instant" compared to a scan. * @param {{ services: string[] }} An array of service IDs to filter the retrieval by. If no service IDs are specified, no devices will be returned. - * @returns {Promise<{ devices: DeviceInfo[] }>} + * @returns {Promise} */ @Cordova({ callbackOrder: 'reverse' }) - retrieveConnected(params?: { services?: string[] }): Promise<{ devices: DeviceInfo[] }> { + retrieveConnected(params?: { services?: string[] }): Promise { return; } @@ -548,7 +548,7 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin { * Bond with a device. * The device doesn't need to be connected to initiate bonding. Android support only. * @param {{ address: string }} params The address/identifier provided by the scan's return object - * @returns {(Observable<{ status: DeviceInfo }>)} + * @returns {(Observable)} * success: * The first success callback should always return with status == bonding. * If the bond is created, the callback will return again with status == bonded. @@ -557,7 +557,7 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin { * The callback that will be triggered when the bond operation fails */ @Cordova({ callbackOrder: 'reverse', observable: true }) - bond(params: { address: string }): Observable<{ status: DeviceInfo }> { + bond(params: { address: string }): Observable { return; } @@ -566,12 +566,12 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin { * @param params.address * Unbond with a device. The device doesn't need to be connected to initiate bonding. Android support only. * @param {{address: string}} params The address/identifier - * @returns {Promise<{ status: DeviceInfo }>} + * @returns {Promise} * success: The success callback should always return with status == unbonded, that is passed with device object * error: The callback that will be triggered when the unbond operation fails */ @Cordova({ callbackOrder: 'reverse' }) - unbond(params: { address: string }): Promise<{ status: DeviceInfo }> { + unbond(params: { address: string }): Promise { return; } @@ -582,7 +582,7 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin { * @param connectError The callback that will be triggered when the connect operation fails * @param params The connection params * @param {ConnectionParams} params - * @returns {(Observable<{ status: DeviceInfo }>)} + * @returns {(Observable)} * success: device object with status * error: The callback that will be triggered when the unbond operation fails */ @@ -670,10 +670,10 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin { * Discover the service's characteristics. * Not providing an array of characteristics will return all characteristics and take longer to discover. iOS support only. * @param {CharacteristicParams} params Characteristic params - * @returns {Promise<{ characteristics: Characteristics }>} The service id and an Array of characteristics + * @returns {Promise} The service id and an Array of characteristics */ @Cordova({ callbackOrder: 'reverse' }) - characteristics(params: CharacteristicParams): Promise<{ characteristics: Characteristics }> { + characteristics(params: CharacteristicParams): Promise { return; } @@ -681,10 +681,10 @@ export class BluetoothLE extends AwesomeCordovaNativePlugin { * @name descriptors (iOS) * Discover the characteristic's descriptors. iOS support only. * @param {DescriptorParams} params - * @returns {Promise<{ descriptors: Descriptors }>} + * @returns {Promise} */ @Cordova({ callbackOrder: 'reverse' }) - descriptors(params: DescriptorParams): Promise<{ descriptors: Descriptors }> { + descriptors(params: DescriptorParams): Promise { return; }