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

Commit

Permalink
fix: fix typings 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 3679233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -12,7 +12,7 @@
/**
* @returns {Promise.<string>}
*/
export async function ScanBarcode(): Promise<string> {
export async function ScanBarcode(): Promise<string | void> {
// BEGIN USER CODE
// Documentation https://github.com/phonegap/phonegap-plugin-barcodescanner
return new Promise((resolve, reject) => {
Expand Down
Expand Up @@ -12,7 +12,7 @@
/**
* @returns {Promise.<MxObject>}
*/
export async function SelectContact(): Promise<mendix.lib.MxObject> {
export async function SelectContact(): Promise<mendix.lib.MxObject | void> {
// BEGIN USER CODE
// Documentation: https://github.com/apache/cordova-plugin-contacts
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 3679233

Please sign in to comment.