Skip to content

Commit

Permalink
fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 5, 2024
1 parent d837c27 commit 0b8809e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/babel-helper-replace-supers/src/index.ts
Expand Up @@ -431,7 +431,9 @@ export default class ReplaceSupers {

// todo: this should have been handled by the environmentVisitor,
// consider add visitSelf support for the path.traverse
visitor.shouldSkip = path => {
// @ts-expect-error: Refine typings in packages/babel-traverse/src/types.ts
// shouldSkip is accepted in traverseNode
visitor.shouldSkip = (path: NodePath) => {
if (path.parentPath === methodPath) {
if (path.parentKey === "decorators" || path.parentKey === "key") {
return true;
Expand Down

0 comments on commit 0b8809e

Please sign in to comment.