diff --git a/src/utils/url.ts b/src/utils/url.ts index 47db1c69..91de01de 100644 --- a/src/utils/url.ts +++ b/src/utils/url.ts @@ -290,13 +290,12 @@ const _getQueryParam = ( return key ? results[key] : results } -export const getQueryParam: ( +export const getQueryParam = ( url: string, key?: string -) => string | undefined | Record = _getQueryParam as ( - url: string, - key?: string -) => string | undefined | Record +): string | undefined | Record => { + return _getQueryParam(url, key) as string | undefined | Record +} export const getQueryParams = ( url: string,