just icon indicating copy to clipboard operation
just copied to clipboard

[bug] option function type definition is different from yargs

Open gwsbhqt opened this issue 3 years ago • 0 comments

https://github.com/microsoft/just/blob/dc1c033ee1a49c1ee85a9c5897ae337dc1d9b619/packages/just-task/src/option.ts#L24

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 image

In practice, I did encounter type problems.

image

I would suggest changing the type to any or unknown, thanks.

gwsbhqt avatar May 31 '22 09:05 gwsbhqt