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

Commit

Permalink
Allowed new 'AsyncGenerator' name for await-promise async iterators (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Goldberg authored and adidahiya committed Jul 24, 2019
1 parent b297249 commit 2947925
Showing 1 changed file with 3 additions and 1 deletion.
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"
);
}

0 comments on commit 2947925

Please sign in to comment.