mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
**Description:**
Fixes Flow parsing for empty exact object types like `{||}` by handling
the lexer-produced `||` token only in Flow object type parsing. This
keeps regular logical-or tokenization unchanged and lets React
Native-style type positions parse correctly.
Added fixture coverage for:
- `type X = {||};`
- `React.ComponentType<{||}>`
- `function f(x: {||}): void {}`
**Related issue:**
Fixes #11834