( raw: string | undefined, defaultValue: boolean, name?: string )
| 71 | * env file, the schema, and validate.ts in lockstep. |
| 72 | */ |
| 73 | export const toBoolWithDefault = ( |
| 74 | raw: string | undefined, |
| 75 | defaultValue: boolean, |
| 76 | name?: string |
| 77 | ): boolean => (raw === undefined ? defaultValue : toBool(raw, name)); |
| 78 | |
| 79 | export const toFloat = ( |
| 80 | raw: string | undefined, |
no test coverage detected