Skip to content

Commit e7a2a41

Browse files
committed
feat(AsyncIterableLike): add AsyncIterableLike type
1 parent 3ac5d5e commit e7a2a41

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export type AsyncIterableLike<T> =
2+
| AsyncIterable<T>
3+
| Iterable<T | Promise<T>>
4+
| Promise<AsyncIterable<T>>
5+
| Promise<Iterable<T | Promise<T>>>;

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "@softwareventures/tsconfig/commonjs",
33
"compilerOptions": {
4+
"lib": ["ES2017", "ES2018.AsyncGenerator", "ES2018.AsyncIterable"],
45
"types": []
56
},
67
"exclude": ["**/*.test.ts", "**/test.ts"]

0 commit comments

Comments
 (0)