Files
Donny/강동윤andGitHub 1e7be03473 fix(es/parser): parse empty Flow exact object type (#11836)
**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
2026-05-02 10:32:32 +09:00

5 lines
126 B
JavaScript

type X = {||};
const x: React.ComponentType<{||}> = null;
function f(x: {||}): void {}
type Box = {| +a: number, ...Other |};