fix(ts) make tsc (almost) not cry on native

Co-authored-by: Calinteodor <calin.chitu@8x8.com>
Co-authored-by: Robert Pintilii <robert.pin9@gmail.com>
This commit is contained in:
Saúl Ibarra Corretgé
2022-10-28 12:07:58 +02:00
committed by Saúl Ibarra Corretgé
parent 2de0520835
commit 2596c463fe
70 changed files with 536 additions and 488 deletions

View File

@@ -6,9 +6,10 @@ import logger from './logger';
* Opens URL in the browser.
*
* @param {string} url - The URL to be opened.
* @param {boolean} _ignore - Ignored.
* @returns {void}
*/
export function openURLInBrowser(url: string) {
export function openURLInBrowser(url: string, _ignore?: boolean) {
Linking.openURL(url).catch(error => {
logger.error(`An error occurred while trying to open ${url}`, error);
});