You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have environment variables and I would like to pass them though the args.default so the CLI has a chance to change the values. When I do that, process.env.ANY_VAR could be string | undefined. This causes a typescript error when I try to use that in citty.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered:
I realized tsconfig may have something to do with this. I checked everything in my tsconfig in stackblitz; it probably comes down to "strictNullChecks": true, "exactOptionalPropertyTypes": true. I can't recreate this and have since refactored that code. It looks consistent though even with strictNullChecks and exactOptionalPropertyTypes so I would say close this as a non-issue. Thank you!!
Environment
citty ^0.1.6
Reproduction
Describe the bug
I have environment variables and I would like to pass them though the args.default so the CLI has a chance to change the values. When I do that,
process.env.ANY_VAR
could bestring | undefined
. This causes a typescript error when I try to use that in citty.Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: