Closed CochiorasBogdan closed 4 years ago
Hello, the promise response type should be Biometrics instead of string at the following line: https://github.com/hieuvp/react-native-fingerprint-scanner/blob/9a698e2a137188a220d09c5259aa2de1e88944b7/index.d.ts#L90
Biometrics
string
Alos the typing for onAttempt is incorrect since it can return an error ('UserCancel', 'UserFallback', etc.) like described in the documentation so the correct typing for: https://github.com/hieuvp/react-native-fingerprint-scanner/blob/9a698e2a137188a220d09c5259aa2de1e88944b7/index.d.ts#L5 would be:
onAttempt
export type AuthenticateAndroid = { onAttempt: (error: FingerprintScannerError) => void };
Hi, I send a PR to fix this problem, now we just need wait the accept.
Fixed in #103
Hello, the promise response type should be
Biometrics
instead ofstring
at the following line: https://github.com/hieuvp/react-native-fingerprint-scanner/blob/9a698e2a137188a220d09c5259aa2de1e88944b7/index.d.ts#L90Alos the typing for
onAttempt
is incorrect since it can return an error ('UserCancel', 'UserFallback', etc.) like described in the documentation so the correct typing for: https://github.com/hieuvp/react-native-fingerprint-scanner/blob/9a698e2a137188a220d09c5259aa2de1e88944b7/index.d.ts#L5 would be: