docs(barcode-scanner): fix wrong jsdocs

This commit is contained in:
Daniel 2018-04-08 19:05:45 +02:00
parent 64cbb6181a
commit 7a6b8ac917

View File

@ -124,7 +124,7 @@ export class BarcodeScanner extends IonicNativePlugin {
/** /**
* Open the barcode scanner. * Open the barcode scanner.
* @param options {BarcodeScannerOptions} Optional options to pass to the scanner * @param {BarcodeScannerOptions} [options] Optional options to pass to the scanner
* @returns {Promise<any>} Returns a Promise that resolves with scanner data, or rejects with an error. * @returns {Promise<any>} Returns a Promise that resolves with scanner data, or rejects with an error.
*/ */
@Cordova({ @Cordova({
@ -137,8 +137,8 @@ export class BarcodeScanner extends IonicNativePlugin {
/** /**
* Encodes data into a barcode. * Encodes data into a barcode.
* NOTE: not well supported on Android * NOTE: not well supported on Android
* @param type {string} Type of encoding * @param {string} type Type of encoding
* @param data {any} Data to encode * @param {any} data Data to encode
* @returns {Promise<any>} * @returns {Promise<any>}
*/ */
@Cordova() @Cordova()