Skip to content

Commit

Permalink
chore: improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianMazur committed Oct 4, 2024
1 parent 588176a commit 418d8e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,15 @@ export function getAllGenericPasswordServices(): Promise<string[]> {
*
* @param {string} server - The server URL.
*
* @returns {Promise<false | true>} Resolves to `true` if internet credentials exist, otherwise `false`.
* @returns {Promise<boolean>} Resolves to `true` if internet credentials exist, otherwise `false`.
*
* @example
* ```typescript
* const hasCredentials = await Keychain.hasInternetCredentials('https://example.com');
* console.log('Internet credentials exist:', hasCredentials);
* ```
*/
export function hasInternetCredentials(server: string): Promise<false | true> {
export function hasInternetCredentials(server: string): Promise<boolean> {
return RNKeychainManager.hasInternetCredentialsForServer(server);
}

Expand Down

0 comments on commit 418d8e7

Please sign in to comment.