Skip to content
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

Merged
merged 3 commits into from Mar 19, 2019
Merged

Add TypeScript definition #116

merged 3 commits into from Mar 19, 2019

Conversation

BendingBender
Copy link
Contributor

No description provided.

index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
@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 :)

index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
/**
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.

index.d.ts Outdated Show resolved Hide resolved
@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.

None yet

3 participants