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

Allowed new 'AsyncGenerator' name for await-promise async iterables #4800

Merged
merged 1 commit into from Jul 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/rules/awaitPromiseRule.ts
Expand Up @@ -111,5 +111,7 @@ function containsType(type: ts.Type, predicate: (name: string) => boolean): bool
}

function isAsyncIterable(name: string) {
return name === "AsyncIterable" || name === "AsyncIterableIterator";
return (
name === "AsyncIterable" || name === "AsyncIterableIterator" || name === "AsyncGenerator"
);
}