Skip to content

Conversation

@BendingBender
Copy link
Contributor

No description provided.

@BendingBender
Copy link
Contributor Author

BendingBender commented Mar 13, 2019

Waiting for sindresorhus/type-fest#5.

@sindresorhus
Copy link
Owner

Waiting for sindresorhus/type-fest#5.

Published :)

/**
Flags converted to camelCase excluding aliases.
*/
flags: {[name: string]: unknown};
Copy link
Owner

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>?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@sindresorhus sindresorhus merged commit f1036df into sindresorhus:master Mar 19, 2019
@sindresorhus
Copy link
Owner

This looks great! :)

@sindresorhus
Copy link
Owner

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.

tommy-mitchell added a commit to tommy-mitchell/meow that referenced this pull request Jan 28, 2024
- 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)
tommy-mitchell added a commit to tommy-mitchell/meow that referenced this pull request Feb 29, 2024
* 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)
tommy-mitchell added a commit to tommy-mitchell/meow that referenced this pull request Feb 29, 2024
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants