|
|
@ -13,7 +13,7 @@ type MapToReturnFunction = { |
|
|
|
|
|
|
|
|
|
|
|
const MAP_TO_RETURN_FUNCTION: MapToReturnFunction = { |
|
|
|
const MAP_TO_RETURN_FUNCTION: MapToReturnFunction = { |
|
|
|
boolean: (qs) => qs !== undefined, |
|
|
|
boolean: (qs) => qs !== undefined, |
|
|
|
number: (qs) => (Number.isFinite(qs) ? parseFloat(String(qs)) : 0), |
|
|
|
number: (qs) => parseFloat(String(qs)) || 0, |
|
|
|
string: (qs) => (qs ? String(qs) : ''), |
|
|
|
string: (qs) => (qs ? String(qs) : ''), |
|
|
|
'string[]': (qs) => { |
|
|
|
'string[]': (qs) => { |
|
|
|
let result: string[] = []; |
|
|
|
let result: string[] = []; |
|
|
|