From 9ab091b83432b9312d96e951df7ac48efad4991f Mon Sep 17 00:00:00 2001 From: Markus Felten Date: Fri, 31 May 2024 15:21:04 +0100 Subject: [PATCH] fix: types --- src/base-provider.mjs | 10 +++++----- src/util.mjs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/base-provider.mjs b/src/base-provider.mjs index 806be28a..165a1c28 100644 --- a/src/base-provider.mjs +++ b/src/base-provider.mjs @@ -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 */ /** diff --git a/src/util.mjs b/src/util.mjs index f5908afd..8e6fd65a 100644 --- a/src/util.mjs +++ b/src/util.mjs @@ -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) { @@ -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) {