Skip to content

Commit f3e0e3d

Browse files
committed
mark $$iterator and $$asyncIterator as unique
1 parent 76ce9a5 commit f3e0e3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Iterable, Iterator, AsyncIterable, and AsyncIterator so they are not
1111
// defined here. However you may need to configure TypeScript to include them.
1212

13-
export var $$iterator: symbol
13+
export const $$iterator: unique symbol
1414

1515
export function isIterable(obj: any): obj is Iterable<any>
1616

@@ -45,7 +45,7 @@ export function forEach<TCollection extends { length: number }>(
4545
thisArg?: any
4646
): void
4747

48-
export var $$asyncIterator: symbol
48+
export const $$asyncIterator: unique symbol
4949

5050
export function isAsyncIterable(obj: any): obj is AsyncIterable<any>
5151

0 commit comments

Comments
 (0)