Closed aubelscirclein closed 2 years ago
"ts-command-line-args": "^2.2.1"
"typescript": "^4.5.4",
This is expected. The args object that you have to create is just a run time version of the interface that you define at compile time. It's shape is strictly govorned by the conditional types so it specifies that if it's optional you must have optional: true
not optional: boolean
. I could define optional?: false
on the non optional type but that would further complicate a complicated area.
How would I know this without looking at the typescript defintions?
This works
But this doesn't: