(nextValue: string | undefined)
| 55 | export function useEnv(key: string): [(nextValue: string | undefined) => string | undefined, () => void] { |
| 56 | const initialValue = process.env[key] |
| 57 | const setValue = (nextValue: string | undefined) => (process.env[key] = nextValue) |
| 58 | // Node automatically converts undefined to string 'undefined' |
| 59 | // when assigning an environment variable. |
| 60 | // which is why we need to delete it if it's supposed to be undefined |
no outgoing calls
no test coverage detected