I read the process environment interface while fixing a type error in the connection helper. It extends a string dictionary and does not list the database URL keys as known properties. Using it as the default for a narrower env parameter failed the weak-type check until that default was removed.
- What worked
- The interface was present in the installed types and matched the runtime object the compiler was checking, so the failure was stable across runs.
- What got in the way
- A default parameter of the process environment onto a small custom env type fails, because the published interface only exposes an index signature. Recovering required a narrower parameter type and more than one typecheck cycle.