From 4bd05127a673794531ade39159ece412dc1a9452 Mon Sep 17 00:00:00 2001 From: Vitaly Tomilov Date: Sat, 3 Aug 2024 21:20:44 +0100 Subject: [PATCH] fix linting --- src/ops/concat.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ops/concat.ts b/src/ops/concat.ts index 33d42ea9..5716029a 100644 --- a/src/ops/concat.ts +++ b/src/ops/concat.ts @@ -33,8 +33,10 @@ import {isPromiseLike} from '../typeguards'; */ export function concat( ...values: Vs -): Operation ? U : never)>; +): Operation< + T, + T | (Vs[number] extends UnknownIterableOrIterator ? U : never) +>; export function concat(...args: unknown[]) { return createOperation(concatSync, concatAsync, args); @@ -116,7 +118,7 @@ function concatAsync( typeof v?.next === 'function' ? v : v?.[Symbol.iterator]?.() || - v?.[Symbol.asyncIterator]?.(); + v?.[Symbol.asyncIterator]?.(); start = !k; if (start) { return Promise.resolve({value: v, done: false});