Skip to content

Commit

Permalink
chore: improve typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianMazur committed Oct 1, 2024
1 parent 5abffbe commit 388dfce
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,6 @@ const AUTH_PROMPT_DEFAULTS: AuthenticationPrompt = {
cancel: 'Cancel',
};

/**
* Normalizes the service option, handling deprecated string format.
*
* @param {string | Options} [serviceOrOptions] - Service name string or options object.
* @returns {Options} Normalized options object.
*/
function normalizeServiceOption(serviceOrOptions?: string | Options): Options {
if (typeof serviceOrOptions === 'string') {
console.warn(
Expand All @@ -212,12 +206,6 @@ function normalizeServiceOption(serviceOrOptions?: string | Options): Options {
return serviceOrOptions || {};
}

/**
* Normalizes options, ensuring proper format and defaults.
*
* @param {string | Options} [serviceOrOptions] - Service name string or options object.
* @returns {NormalizedOptions} Normalized options object with default values.
*/
function normalizeOptions(
serviceOrOptions?: string | Options
): NormalizedOptions {
Expand Down Expand Up @@ -495,7 +483,7 @@ export function requestSharedWebCredentials(): Promise<
}

/**
* Sets shared web credentials (iOS and visionOS only).
* Sets shared web credentials (iOS only).
*
* @param {string} server - The server URL.
* @param {string} username - The username or e-mail to be saved.
Expand Down Expand Up @@ -529,7 +517,7 @@ export function setSharedWebCredentials(
}

/**
* Checks if the current device supports the specified authentication policy.
* Checks if the current device supports the specified authentication policy (iOS only).
*
* @param {Options} [options] - A keychain options object.
*
Expand Down

0 comments on commit 388dfce

Please sign in to comment.