Skip to content

Commit

Permalink
Merge pull request #192 from Manduro/types
Browse files Browse the repository at this point in the history
[TypeScript] Add return type for authenticate
  • Loading branch information
zibs authored May 31, 2019
2 parents d7b69c6 + 1ff95b7 commit f865166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ declare module 'react-native-touch-id' {
* @param reason String that provides a clear reason for requesting authentication.
* @param config Configuration object for more detailed dialog setup
*/
authenticate(reason?: string, config?: AuthenticateConfig);
authenticate(reason?: string, config?: AuthenticateConfig): Promise<true>;
/**
*
* @param config - Returns a `Promise` that rejects if TouchID is not supported. On iOS resolves with a `biometryType` `String` of `FaceID` or `TouchID`
Expand Down

0 comments on commit f865166

Please sign in to comment.