-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite in TypeScript #252
base: main
Are you sure you want to change the base?
Conversation
test/test.ts
Outdated
'--': true as unknown as {type: 'string'; isMultiple: true}, | ||
// TODO: can not model due to microsoft/TypeScript#17867 | ||
// A potential workaround is to use a symbol for '--' -> {flags: [argvDashDash]: true} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the "rest index type" issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a proper URL over microsoft/TypeScript#17867
May have missed some comments, but that's the bulk of where I'm needing clarification. The other TODOs I have are reminders to fix type issues. |
FYI: e9a55cd |
Do we support a shorthand for setting flags? const cli = meow({
importMeta: import.meta
flags: {
rainbow: 'boolean',
unicorn: 'string',
},
}); |
No. That's not something I want to support either. |
Got it. I think this test case (and maybe another?) had confused me before and I was remembering something about it: Lines 38 to 40 in c97c031
|
That test case is incorrect. |
ac20f23
to
648f69c
Compare
Updated to reflect changes from other PRs. Type tests are failing due to |
CI is failing due to sindresorhus/type-fest#824 |
I'm not sure how to fix the timeout issue, I get it sometimes locally when running |
Maybe try downgrading to |
Didn't work, guess it's something on our end. Now it doesn't even say which test timed out. |
Works for me now: 64f0915 |
Hmm, or maybe not. Maybe the problem here is |
Per #233.
minimist-options
to support thearguments
option (seeminimist-options.d.ts
)minimist-options
itself--
option inflags