From 63a5b2a1f658086cef582b1bed5d43da4314d14a Mon Sep 17 00:00:00 2001 From: ptaylor Date: Mon, 25 Jul 2022 16:01:02 -0700 Subject: [PATCH] fix switchmap generics --- src/add/asynciterable-operators/switchmap.ts | 2 +- src/asynciterable/operators/switchmap.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add/asynciterable-operators/switchmap.ts b/src/add/asynciterable-operators/switchmap.ts index c4d0d74a..365dd206 100644 --- a/src/add/asynciterable-operators/switchmap.ts +++ b/src/add/asynciterable-operators/switchmap.ts @@ -4,7 +4,7 @@ import { switchMap } from '../../asynciterable/operators/switchmap'; /** * @ignore */ -export function switchMapProto>( +export function switchMapProto>( this: AsyncIterableX, selector: (value: T, index: number, signal?: AbortSignal) => R | Promise, thisArg?: any diff --git a/src/asynciterable/operators/switchmap.ts b/src/asynciterable/operators/switchmap.ts index babd3dd0..0c04be80 100644 --- a/src/asynciterable/operators/switchmap.ts +++ b/src/asynciterable/operators/switchmap.ts @@ -16,7 +16,7 @@ import { OperatorAsyncFunction } from '../../interfaces'; * @returns {OperatorAsyncFunction} 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( +export function switchMap( selector: FlattenConcurrentSelector, thisArg?: any ): OperatorAsyncFunction {