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
Flags definitions passed to command() that include a description field are inferred as never. If you omit description, the type is inferred correctly.
Reproduction
import{command}from"cleye";constbuild=command({name: 'build',flags: {watch: {type: Boolean,alias: 'w',default: false,description: 'Watch for changes and rebuild',// when commented out, type is correct},},},argv=>{if(argv.flags.watch){// expected "watch" to be boolean, but it is "never"}});
Bug description
Flags definitions passed to
command()
that include adescription
field are inferred asnever
. If you omitdescription
, the type is inferred correctly.Reproduction
Node.js package manager
pnpm
Environment
Can you contribute a fix?
The text was updated successfully, but these errors were encountered: