parent
2e9a22373b
commit
abc7fdf54c
4 changed files with 12 additions and 11 deletions
@ -1,7 +1,7 @@ |
|||||||
const MAP_TO_VALUE_CONVERTER: MapToValueConverter = { |
const MAP_TO_VALUE_CONVERTER: MapToValueConverter = { |
||||||
|
boolean: (value) => Boolean(value), |
||||||
number: (value) => parseInt(String(value), 10) || 0, |
number: (value) => parseInt(String(value), 10) || 0, |
||||||
string: (value) => String(value), |
string: (value) => String(value), |
||||||
undefined: () => undefined, |
|
||||||
}; |
}; |
||||||
|
|
||||||
export default MAP_TO_VALUE_CONVERTER; |
export default MAP_TO_VALUE_CONVERTER; |
||||||
|
Loading…
Reference in new issue