Support -? and -readonly #36

Closed
opened 2024-06-11 15:04:59 +02:00 by SirPepe · 1 comment
SirPepe commented 2024-06-11 15:04:59 +02:00 (Migrated from github.com)

-? 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 }
`-?` and `-readonly` are valid TS, but do not appear to work with lezer: ```typescript type Test<T> = { -readonly [P in keyof T]-?: T[P] } type Result = Test<{ readonly foo?: number }> // Result = { foo: number } ```
marijnh commented 2024-06-11 17:05:13 +02:00 (Migrated from github.com)

It sure would be nice if there were a formal spec for this language. Added in attached patch.

It sure would be nice if there were a formal spec for this language. Added in attached patch.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/javascript#36
No description provided.