(val: string | undefined)
| 1 | import type { Config } from '@dashdot/common'; |
| 2 | |
| 3 | const numNull = (val: string | undefined): number | undefined => { |
| 4 | if (val === undefined || val === '') { |
| 5 | return undefined; |
| 6 | } |
| 7 | return +val; |
| 8 | }; |
| 9 | |
| 10 | const penv = (key: string): string | undefined => process.env[`DASHDOT_${key}`]; |
| 11 | const lst = (item: string): string[] => (item === '' ? [] : item.split(',')); |