mirror of
https://github.com/honojs/hono.git
synced 2024-11-21 18:18:57 +01:00
refactor: getQueryParam signature
This commit is contained in:
parent
476ec387a8
commit
a8d6417fb2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user