Skip to content

Property kind is required on TSPropertySignature #17096

@verytactical

Description

@verytactical

💻

  • Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

declare const node: t.TSPropertySignature;
type R = typeof node.kind // "get" | "set"

Configuration file name

No response

Configuration

{
    "sourceType": "module",
    "plugins": ["typescript"],
    "errorRecovery": true,
}

Current and expected behavior

kind: "get" | "set"

should be

kind?: "get" | "set"

Environment

  • Babel version: 7.26.7
  • Node: v22.11.0

Possible solution

Make type up to date with implementation

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions