You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Working:
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!
The text was updated successfully, but these errors were encountered:
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:
Working:
You can see that when I specify
format?: string[]
then eslint does not specifyformat
as undefined andformat.forEach
is still valid. But when I specify theformat?: string[] | void
, the format.forEach will experience an error.Please fix,
Thanks for read!
The text was updated successfully, but these errors were encountered: