💻
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
should be
Environment
- Babel version: 7.26.7
- Node: v22.11.0
Possible solution
Make type up to date with implementation
Additional context
No response
💻
How are you using Babel?
Programmatic API (
babel.transform,babel.parse)Input code
Configuration file name
No response
Configuration
{ "sourceType": "module", "plugins": ["typescript"], "errorRecovery": true, }Current and expected behavior
should be
Environment
Possible solution
Make type up to date with implementation
Additional context
No response