unjs / citty

๐ŸŒ† Elegant CLI Builder
Other
729 stars 23 forks source link

refactor(types)!: improve type safety and inference of args #132

Open DamianGlowala opened 5 months ago

DamianGlowala commented 5 months ago

๐Ÿ”— Linked issue

https://github.com/nuxt/cli/pull/381 inspired me to work on this PR, as I noticed the args can be undefined at runtime even though their types do not reflect this.

โ“ Type of change

๐Ÿ“š Description

This PR:

๐Ÿ“ Checklist