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

Remove need for @ts-expect-error usage in test #575

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

trevorade
Copy link
Contributor

When tsc is not set to permit bigint literals, it's better to wrap the equivalent number in a BigInt constructor call and then cast to the desired literal type.

When `tsc` is not set to permit `bigint` literals, it's better to wrap the equivalent number in a `BigInt` constructor call and then cast to the desired literal type.
@tommy-mitchell
Copy link
Contributor

Good catch :)

@sindresorhus sindresorhus merged commit 18f8a11 into sindresorhus:main Mar 22, 2023
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