Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integrationTests/ts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6", "esnext.asynciterable"],
"lib": ["es2019", "es2020.string"],
"strict": true,
"noEmit": true,
"types": []
Expand Down
4 changes: 2 additions & 2 deletions src/subscription/mapAsyncIterator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { PromiseOrValue } from '../jsutils/PromiseOrValue';
* which produces values mapped via calling the callback function.
*/
export function mapAsyncIterator<T, U>(
iterable: AsyncIterable<T>,
iterable: AsyncIterable<T> | AsyncGenerator<T, void, void>,
callback: (arg: T) => PromiseOrValue<U>,
rejectCallback?: (arg: any) => PromiseOrValue<U>,
): any; // TS_SPECIFIC: AsyncGenerator requires [email protected]
): AsyncGenerator<U, void, void>;
2 changes: 1 addition & 1 deletion src/subscription/subscribe.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface SubscriptionArgs {
*/
export function subscribe(
args: SubscriptionArgs,
): Promise<AsyncIterableIterator<ExecutionResult> | ExecutionResult>;
): Promise<AsyncGenerator<ExecutionResult, void, void> | ExecutionResult>;

/**
* Implements the "CreateSourceEventStream" algorithm described in the
Expand Down