TS: Parse error when using [Symbol.iterator] in interfaces #38

Closed
opened 2024-10-08 15:40:00 +02:00 by SirPepe · 1 comment
SirPepe commented 2024-10-08 15:40:00 +02:00 (Migrated from github.com)

Errors around the index signature for the following:

interface Foo<T> {
  [Symbol.iterator](): Iterator<T>;
}
Errors around the index signature for the following: ``` interface Foo<T> { [Symbol.iterator](): Iterator<T>; } ```
marijnh commented 2024-10-08 16:18:17 +02:00 (Migrated from github.com)

This patch should help.

This patch should help.
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#38
No description provided.