Skip to content

[Bug]: Extra visitor keys for DeclareInterface and InterfaceDeclaration #15537

@fisker

Description

@fisker

💻

  • Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

mixins and implements removed in #15479. But they still exits in require('@babel/types').VISITOR_KEYS.

> require('@babel/types').VISITOR_KEYS.DeclareInterface
[ 'id', 'typeParameters', 'extends', 'mixins', 'implements', 'body' ]
> require('@babel/types').VISITOR_KEYS.InterfaceDeclaration
[ 'id', 'typeParameters', 'extends', 'mixins', 'implements', 'body' ]

Configuration file name

No response

Configuration

No response

Current and expected behavior

Should not include mixins and implements.

Environment

  • @babel/types 7.21.3

Possible solution

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: flowoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions