[bug] option function type definition is different from yargs
gwsbhqt opened this issue · 0 comments
gwsbhqt commented
just/packages/just-task/src/option.ts
Line 24 in dc1c033
Just 's option function define the "default" member as object type, but at yargs example code, the "default" member is primitive type.
https://github.com/yargs/yargs/blob/59a86fb83cfeb8533c6dd446c73cf4166cc455f2/example/complex.js#L9
In practice, I did encounter type problems.
I would suggest changing the type to any or unknown, thanks.