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
Now there's a type error in acorn-walk@8.3.2 on VariableDeclarator:
Object literal may only specify known properties, but 'VariableDeclarator' does not exist in type 'SimpleVisitors<unknown>'. Did you mean to write 'VariableDeclaration'?ts(2561)
Given that the code still works at runtime, I'm assuming that this is a bug with the type definitions but let me know if I'm missing something!
exporttypeSimpleVisitors<TState>={[typeinacorn.AnyNode["type"]]?: (node: Extract<acorn.AnyNode,{type: type}>,state: TState)=>void}&{[typeinkeyofAggregateType]?: (node: AggregateType[type],state: TState)=>void}// Maybe VariableDeclarator should be included here?exporttypeAnyNode=Statement|Expression|Declaration|ModuleDeclaration|Literal|Program|SwitchCase|CatchClause|Property|Super|SpreadElement|TemplateElement|AssignmentProperty|ObjectPattern|ArrayPattern|RestElement|AssignmentPattern|ClassBody|MethodDefinition|MetaProperty|ImportSpecifier|ImportDefaultSpecifier|ImportNamespaceSpecifier|ExportSpecifier|AnonymousFunctionDeclaration|AnonymousClassDeclaration|PropertyDefinition|PrivateIdentifier|StaticBlock
The text was updated successfully, but these errors were encountered:
This code worked fine in
acorn-walk@8.2.0
:Now there's a type error in
acorn-walk@8.3.2
onVariableDeclarator
:Given that the code still works at runtime, I'm assuming that this is a bug with the type definitions but let me know if I'm missing something!
Additional information
Previous type definitions (
acorn-walk@8.2.0
):New type definitions (
acorn-walk@8.3.2
):The text was updated successfully, but these errors were encountered: