oxc-project / oxc

⚓ A collection of JavaScript tools written in Rust.
https://oxc.rs
MIT License
12.3k stars 448 forks source link

[oxc-types] `TSEnumMemberName` type seems incorrectly generated #7208

Open yyx990803 opened 8 hours ago

yyx990803 commented 8 hours ago
enum Foo {
  Bar = 1
  ^ TSEnumMemberName
}

https://github.com/oxc-project/oxc/blob/main/npm/oxc-types/types.d.ts#L1048

In babel it's just Identifier | StringLiteral

Boshen commented 5 hours ago

https://github.com/oxc-project/oxc/blob/b74686c598cd958a95777094fba4f3cb204dca8b/crates/oxc_ast/src/ast/ts.rs#L121-L123