Skip to content

Commit

Permalink
Add Function and Class to AggregateType
Browse files Browse the repository at this point in the history
FIX: Add `Function` and `Class` to the `AggregateType` type, so that
they can be used in walkers without raising a type error.
  • Loading branch information
marijnh committed Oct 29, 2023
1 parent 31967af commit 6369777
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions acorn-walk/src/walk.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export type FullAncestorWalkerCallback<TState> = (
type AggregateType = {
Expression: acorn.Expression,
Statement: acorn.Statement,
Function: acorn.Function,
Class: acorn.Class,
Pattern: acorn.Pattern,
ForInit: acorn.VariableDeclaration | acorn.Expression
}
Expand Down

0 comments on commit 6369777

Please sign in to comment.