Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit 2947925

Browse files
Josh Goldbergadidahiya
authored andcommitted
Allowed new 'AsyncGenerator' name for await-promise async iterators (#4800)
1 parent b297249 commit 2947925

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rules/awaitPromiseRule.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,7 @@ function containsType(type: ts.Type, predicate: (name: string) => boolean): bool
111111
}
112112

113113
function isAsyncIterable(name: string) {
114-
return name === "AsyncIterable" || name === "AsyncIterableIterator";
114+
return (
115+
name === "AsyncIterable" || name === "AsyncIterableIterator" || name === "AsyncGenerator"
116+
);
115117
}

0 commit comments

Comments
 (0)