Open jbinda opened 4 years ago
Hi @jbinda
This appears to have been resolved already: https://github.com/naoufal/react-native-touch-id/blob/master/index.d.ts#L103
Are you on the latest version?
@Aidurber
I'm on 4.4.1 version which seems to be the latest version on npm: 4.4.1
but you're right it seems that it is already covered on the master branch.
Does anyone know why @naoufal or other repository maintainers does not review and merge the PRs or release merged PR as a new version? I have this issue too.
@SaeedZhiany It's open source. It's people volunteering their free time, they have no obligation to work for free. I recommend you maintain your own fork.
Hi guys!
I have TypeScript configured in my project and receive below error during type checking:![image](https://user-images.githubusercontent.com/21242757/60946644-ff42e100-a2ee-11e9-8a5f-0a09d249b826.png)
The issue is that authenticate function in TouchID object does not have return type defined inside index.d.ts in library root director:![image](https://user-images.githubusercontent.com/21242757/60946713-2e595280-a2ef-11e9-8624-64cc5ab9ead9.png)
According to documentation which says:
Shouldn't it looks more like that:![image](https://user-images.githubusercontent.com/21242757/60946796-6f516700-a2ef-11e9-9b03-46c2f0f61b81.png)
I'm not sure if any inside Promise if correct - maybe it should be also defined to one of existing type e.g. boolean
Currently my workaround is to override types for 'react-native-touch-id' module in my project and set types as presented above.
Is there any more elegant solution or anybody has idea how else I can sort it ?