0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-24 19:26:56 +01:00

refactor: getQueryParam signature

This commit is contained in:
k-tecchan 2024-08-04 02:17:40 +00:00
parent 476ec387a8
commit a8d6417fb2

View File

@ -290,13 +290,12 @@ const _getQueryParam = (
return key ? results[key] : results
}
export const getQueryParam: (
export const getQueryParam = (
url: string,
key?: string
) => string | undefined | Record<string, string> = _getQueryParam as (
url: string,
key?: string
) => string | undefined | Record<string, string>
): string | undefined | Record<string, string> => {
return _getQueryParam(url, key) as string | undefined | Record<string, string>
}
export const getQueryParams = (
url: string,