-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Add TypeScript definition #116
Add TypeScript definition #116
Conversation
|
Published :) |
/** | ||
Flags converted to camelCase excluding aliases. | ||
*/ | ||
flags: {[name: string]: unknown}; |
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.
What your opinion on {[name: string]: unknown};
vs Record<string, unknown>
?
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.
I think {[name: string]: unknown};
is more common, so I'd prefer this.
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.
And it allows naming the key.
This looks great! :) |
Just FYI. It's probably going to take some time until I can publish this one as it's blocked by doing the next major release. |
- this was introduced in sindresorhus#77, likely due to compatibility with minimist - `booleanDefault: null` causes minimist-options to error - even in 2019, this was a confusing type: sindresorhus#116 (comment)
* this was introduced in sindresorhus#77, likely due to compatibility with minimist * `booleanDefault: null` causes minimist-options to error * even in 2019, this was a confusing type: sindresorhus#116 (comment)
* this was introduced in sindresorhus#77, likely due to compatibility with minimist * `booleanDefault: null` causes minimist-options to error * even in 2019, this was a confusing type: sindresorhus#116 (comment)
No description provided.