any in ClassDeclaration fields in TypeScript type in @babel/types since 7.8.0 #11474
Labels
i: bug
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Current Behavior
I updated
@babel/types
from~7.7.0
to the latest version7.9.5
and noticed that all of a sudden I get new TypeScript errors. The Problem is that beginning with@babel/types@7.8.0
a lot of fields of theClassDeclaration
type useany
instead of more specific types used before (compare below). Because I use thenoImplicitAny
option of the TypeScript compiler new errors occur.Expected behavior/code
I would expect that an minor upgrade does not break types. I'm not sure if there was a specific reason to set this to any or if it is simply a bug in type generation or somewhere else.
Environment
Possible Solution
Use the more specific types as before.
Should I provide more information/context?
The text was updated successfully, but these errors were encountered: