Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
fix: ignore typescript warnings for hybrid actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Antonelli committed Aug 31, 2021
1 parent 4e85ed9 commit f5bbf5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -23,6 +23,7 @@ export async function ScanBarcode(): Promise<string> {
}

window.cordova.plugins.barcodeScanner.scan(
// @ts-ignore
result => resolve(!result.cancelled && result.text && result.text.length > 0 ? result.text : undefined),
error => reject(error)
);
Expand Down
Expand Up @@ -29,6 +29,7 @@ export async function SelectContact(): Promise<mendix.lib.MxObject> {
.catch(error => reject(error));
},
error =>
// @ts-ignore
error.code === ContactErrorCode.OPERATION_CANCELLED_ERROR ? resolve() : reject(errorMessage(error))
);
});
Expand Down

0 comments on commit f5bbf5e

Please sign in to comment.