I am implementing a working JS function to typescript, but I'm getting an error on parameters: "error, success"
[tslint] Parentheses are required around the parameters of an arrow function definition (arrow-parens)
function chapa() {
console.log('altered');
TouchID.isSupported()
.then(authenticate)
.catch(error => {
AlertIOS.alert('TouchID not supported');
});
}
so the "error" is underlined with error, with this message:
[tslint] Parentheses are required around the parameters of an arrow function definition (arrow-parens)
how should I pass then the "error" parameter?, cheers
Just as it says, put parentheses around the parameter:
.catch((error: any) => {
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With