Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed May 31, 2024
1 parent c6a2761 commit 9ab091b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/base-provider.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import {
/**
* @typedef {Object} MessageDestination
* Endpoint to deliver log messages to.
* @property {Function} info
* @property {Function} debug
* @property {Function} warn
* @property {Function} error
* @property {Function} trace
* @property {function(string):void} info
* @property {function(string):void} debug
* @property {function(string):void} warn
* @property {function(string):void} error
* @property {function(string):void} trace
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions src/util.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function asArray(value) {
* A URL auth component will be removed to.
* @param {string|undefined} name
* @param {string[]} repositoryBases all possible bases
* @param {Function} [whenFound] to be called with the found base name
* @param {function(string):void} [whenFound] to be called with the found base name
* @return {string|undefined} name without base
*/
export function stripBaseName(name, repositoryBases, whenFound) {
Expand All @@ -39,7 +39,7 @@ export function stripBaseName(name, repositoryBases, whenFound) {
* Loops over names and executes stripBaseName.
* @param {string[]|string|undefined} names
* @param {string[]} repositoryBases all possible bases
* @param {Function} [whenFound] to be called with the found base name
* @param {function(string):void} [whenFound] to be called with the found base name
* @return {string[]|string|undefined} names without base
*/
export function stripBaseNames(names, repositoryBases, whenFound) {
Expand Down

0 comments on commit 9ab091b

Please sign in to comment.