Skip to content

Commit

Permalink
add success/error indices
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Mar 2, 2017
1 parent da72500 commit 448ec7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/serial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export class Serial {
* @param options {SerialPermissionOptions} Options used to request serial permissions for an unknown device
* @return {Promise<any>} Returns a promise that resolves when permissions are granted
*/
@Cordova()
@Cordova({
successIndex: 1,
errorIndex: 2
})
static requestPermission(options?: SerialPermissionOptions): Promise<any> { return; }

/**
Expand Down

0 comments on commit 448ec7a

Please sign in to comment.