mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
582805df03
Fixes #24804. Recognize `!` as a type-start token so `?` after `satisfies` remains the conditional-expression operator instead of being consumed as a JSDoc nullable type. Validated with `just ready`. AI-assisted.
4 lines
82 B
TypeScript
4 lines
82 B
TypeScript
const foo = "foo"
|
|
const bar = "bar"
|
|
foo === "value" satisfies string ? !bar : bar
|