(value: string[] | string | undefined | null)
| 115 | } |
| 116 | |
| 117 | export function decodeList(value: string[] | string | undefined | null): string[] { |
| 118 | if (!value) { |
| 119 | return []; |
| 120 | } |
| 121 | return Array.isArray(value) ? value : typeof value === 'string' ? [value] : []; |
| 122 | } |
| 123 | |
| 124 | // This function has multiple signatures to help with typing in callers. |
| 125 | export function decodeInteger(value: QueryValue): number | undefined; |
no outgoing calls