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

[types/convert-typeof-to-is-type]: Rule does not check for typeof x === 'bigint' #158

Closed
ElPrudi opened this issue Jul 24, 2023 · 2 comments

Comments

@ElPrudi
Copy link

ElPrudi commented Jul 24, 2023

I like the concept of the rule to keep my bundle size short, but I think you accidentally forgot to include the bigint type. To be fair, I guess it's a rather new addition to JS.

const isBigInt = (value) => typeof value === 'bigint'
@coderaiser
Copy link
Owner

Nice idea :)!

Just updated @putout/plugin-types 🎉 . Please re-install 🐊Putout. Is it works for you?

@ElPrudi
Copy link
Author

ElPrudi commented Jul 24, 2023

Yes, it's working. Thank you very much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants