Skip to content

Commit

Permalink
fix switchmap generics
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Jul 25, 2022
1 parent b5513d7 commit 63a5b2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/add/asynciterable-operators/switchmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { switchMap } from '../../asynciterable/operators/switchmap';
/**
* @ignore
*/
export function switchMapProto<T extends unknown, R extends AsyncIterable<any>>(
export function switchMapProto<T, R extends AsyncIterable<any>>(
this: AsyncIterableX<T>,
selector: (value: T, index: number, signal?: AbortSignal) => R | Promise<R>,
thisArg?: any
Expand Down
2 changes: 1 addition & 1 deletion src/asynciterable/operators/switchmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { OperatorAsyncFunction } from '../../interfaces';
* @returns {OperatorAsyncFunction<TSource, TResult>} An operator that creates an async-iterable sequence whose
* elements are the result of invoking the one-to-many transform function on each element of the input sequence.
*/
export function switchMap<TSource extends unknown, TResult extends unknown>(
export function switchMap<TSource, TResult>(
selector: FlattenConcurrentSelector<TSource, TResult>,
thisArg?: any
): OperatorAsyncFunction<TSource, TResult> {
Expand Down

0 comments on commit 63a5b2a

Please sign in to comment.