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

bug: no error when attribute can undefined because arg?: <type> #99

Closed
tachibana-shin opened this issue May 30, 2022 · 1 comment
Closed

Comments

@tachibana-shin
Copy link

Hi antfu!,

I'm using your eslint configuration and it has a very serious error for me.
It appears that this configuration has disabled the ability to recognize a value that could be undefined when it is defined with ?:

Not working:
image

Working:
image

You can see that when I specify format?: string[] then eslint does not specify format as undefined and format.forEach is still valid. But when I specify the format?: string[] | void, the format.forEach will experience an error.

Please fix,
Thanks for read!

@antfu
Copy link
Owner

antfu commented May 30, 2022

We temporarily close this due to the lack of enough information. Please provide a minimal reproduction to reopen the issue. Thanks.

@antfu antfu closed this as completed May 30, 2022
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

No branches or pull requests

2 participants