]> git.ardis.lu - envpass/commit
Cast `parseEnv` result to `Record<string, string>`
authorArdis Lu <ardisglu@gmail.com>
Wed, 19 Aug 2026 04:53:36 +0000 (21:53 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 19 Aug 2026 04:53:36 +0000 (21:53 -0700)
commita7dd11364f8f08bfacfbc1b7b2663e162be4d08b
tree5b9fd0f482ecd5b9f5d31bd58042bafd90161ebf
parent787b61f1d0e05159a35f030fe85f3c7bb1651d0b
Cast `parseEnv` result to `Record<string, string>`

Casting is required instead of a simple annotation because the default return value `NodeJS.Dict<string>` sets the value to `string | undefined`. The `undefined` scenario is impossible with `parseEnv`'s current implementation, so to handle the the `undefined` case results in an untestable code branch.
src/command.js
This page took 0.035747 seconds and 4 git commands to generate.