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