Support `-?` and `-readonly`
SirPepe opened this issue · 1 comments
SirPepe commented
-?
and -readonly
are valid TS, but do not appear to work with lezer:
type Test<T> = { -readonly [P in keyof T]-?: T[P] }
type Result = Test<{ readonly foo?: number }>
// Result = { foo: number }
marijnh commented
It sure would be nice if there were a formal spec for this language. Added in attached patch.