Commit fa3ec58
fix: keep readonly on instance Event phase declarations for Flow
The instance-level declarations need `readonly` to match their literal
types (0, 1, 2, 3). Without readonly, Flow treats them as invariant and
rejects the Object.defineProperty value assignments as incompatible-type.
The readonly annotation is type-level only (stripped at runtime); the
actual runtime fix is writable+configurable on Object.defineProperty.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent a0d70aa commit fa3ec58
1 file changed
Lines changed: 4 additions & 4 deletions
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments