microsoft/just

[bug] option function type definition is different from yargs

gwsbhqt opened this issue · 0 comments

default?: { [key: string]: any };

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.