From 96ff8ccacc95169df665f4bc813aba091e3bc8bd Mon Sep 17 00:00:00 2001 From: Rebecca Stevens Date: Mon, 5 Aug 2024 00:13:00 +1200 Subject: [PATCH] style: update linting --- benchmarks/src/async.ts | 6 ++-- benchmarks/src/tests/iter-ops.ts | 2 +- benchmarks/src/tests/rxjs.ts | 2 +- src/helpers.ts | 2 +- src/index.ts | 21 +++++++----- src/ops/aggregate.ts | 2 +- src/ops/async/delay.ts | 2 +- src/ops/async/throttle.ts | 2 +- src/ops/async/wait-race.ts | 3 +- src/ops/async/wait.ts | 2 +- src/ops/catch-error.ts | 8 ++++- src/ops/concat.ts | 8 ++--- src/ops/concurrency-fork.ts | 1 + src/ops/count.ts | 2 +- src/ops/default-empty.ts | 10 +++--- src/ops/distinct.ts | 2 +- src/ops/drain.ts | 2 +- src/ops/empty.ts | 2 +- src/ops/every.ts | 2 +- src/ops/filter.ts | 2 +- src/ops/first.ts | 2 +- src/ops/flat-map.ts | 8 ++++- src/ops/flat.ts | 34 +++++++++++-------- src/ops/index-by.ts | 2 +- src/ops/is-empty.ts | 2 +- src/ops/last.ts | 2 +- src/ops/map.ts | 2 +- src/ops/on-end.ts | 2 +- src/ops/page.ts | 2 +- src/ops/reduce.ts | 2 +- src/ops/repeat.ts | 2 +- src/ops/retry.ts | 8 +++-- src/ops/skip-until.ts | 2 +- src/ops/skip-while.ts | 2 +- src/ops/skip.ts | 2 +- src/ops/some.ts | 2 +- src/ops/split.ts | 18 +++++----- src/ops/spread.ts | 2 +- src/ops/take-last.ts | 2 +- src/ops/take-until.ts | 2 +- src/ops/take-while.ts | 2 +- src/ops/take.ts | 2 +- src/ops/tap.ts | 2 +- src/ops/timeout.ts | 3 +- src/ops/timing.ts | 2 +- src/ops/to-array.ts | 2 +- src/ops/zip.ts | 12 +++---- src/pipe.ts | 8 ++--- src/typeguards.ts | 15 +++++--- src/types/index.ts | 4 +-- src/utils.ts | 2 +- test/header.ts | 2 +- test/ops/aggregate/types/async.test-d.ts | 2 +- test/ops/aggregate/types/sync.test-d.ts | 2 +- test/ops/catch-error/types/async.test-d.ts | 2 +- test/ops/catch-error/types/sync.test-d.ts | 2 +- test/ops/concat/types/async.test-d.ts | 2 +- test/ops/concat/types/sync.test-d.ts | 2 +- .../concurrency-fork/types/async.test-d.ts | 2 +- .../ops/concurrency-fork/types/sync.test-d.ts | 2 +- test/ops/consume/types/async.test-d.ts | 2 +- test/ops/consume/types/sync.test-d.ts | 2 +- test/ops/count/types/async.test-d.ts | 2 +- test/ops/count/types/sync.test-d.ts | 2 +- test/ops/default-empty/types/async.test-d.ts | 2 +- test/ops/default-empty/types/sync.test-d.ts | 2 +- test/ops/delay/types/async.test-d.ts | 2 +- test/ops/distinct/types/async.test-d.ts | 2 +- test/ops/distinct/types/sync.test-d.ts | 2 +- test/ops/drain/types/async.test-d.ts | 2 +- test/ops/drain/types/sync.test-d.ts | 2 +- test/ops/empty/types/async.test-d.ts | 2 +- test/ops/empty/types/sync.test-d.ts | 2 +- test/ops/every/types/async.test-d.ts | 2 +- test/ops/every/types/sync.test-d.ts | 2 +- test/ops/filter/types/async.test-d.ts | 2 +- test/ops/filter/types/sync.test-d.ts | 2 +- test/ops/first/types/async.test-d.ts | 2 +- test/ops/first/types/sync.test-d.ts | 2 +- test/ops/flat-map/types/async.test-d.ts | 2 +- test/ops/flat-map/types/sync.test-d.ts | 2 +- test/ops/flat/types/async.test-d.ts | 2 +- test/ops/flat/types/sync.test-d.ts | 2 +- test/ops/index-by/types/async.test-d.ts | 7 +++- test/ops/index-by/types/sync.test-d.ts | 7 +++- test/ops/is-empty/types/async.test-d.ts | 2 +- test/ops/is-empty/types/sync.test-d.ts | 2 +- test/ops/last/types/async.test-d.ts | 2 +- test/ops/last/types/sync.test-d.ts | 2 +- test/ops/map/types/async.test-d.ts | 2 +- test/ops/map/types/sync.test-d.ts | 2 +- test/ops/on-end/async.ts | 2 +- test/ops/on-end/sync.ts | 2 +- test/ops/on-end/types/async.test-d.ts | 2 +- test/ops/on-end/types/sync.test-d.ts | 2 +- test/ops/page/types/async.test-d.ts | 2 +- test/ops/page/types/sync.test-d.ts | 2 +- test/ops/reduce/types/async.test-d.ts | 7 +++- test/ops/reduce/types/sync.test-d.ts | 7 +++- test/ops/repeat/types/async.test-d.ts | 2 +- test/ops/repeat/types/sync.test-d.ts | 2 +- test/ops/retry/types/async.test-d.ts | 2 +- test/ops/skip-until/types/async.test-d.ts | 2 +- test/ops/skip-until/types/sync.test-d.ts | 2 +- test/ops/skip-while/types/async.test-d.ts | 2 +- test/ops/skip-while/types/sync.test-d.ts | 2 +- test/ops/skip/types/async.test-d.ts | 2 +- test/ops/skip/types/sync.test-d.ts | 2 +- test/ops/some/types/async.test-d.ts | 2 +- test/ops/some/types/sync.test-d.ts | 2 +- test/ops/split/async.ts | 2 +- test/ops/split/sync.ts | 2 +- test/ops/split/types/async.test-d.ts | 2 +- test/ops/split/types/sync.test-d.ts | 2 +- test/ops/spread/types/async.test-d.ts | 2 +- test/ops/spread/types/sync.test-d.ts | 2 +- test/ops/take-last/types/async.test-d.ts | 2 +- test/ops/take-last/types/sync.test-d.ts | 2 +- test/ops/take-until/types/async.test-d.ts | 2 +- test/ops/take-until/types/sync.test-d.ts | 2 +- test/ops/take-while/types/async.test-d.ts | 2 +- test/ops/take-while/types/sync.test-d.ts | 2 +- test/ops/take/types/async.test-d.ts | 2 +- test/ops/take/types/sync.test-d.ts | 2 +- test/ops/tap/types/async.test-d.ts | 2 +- test/ops/tap/types/sync.test-d.ts | 2 +- test/ops/throttle/types/async.test-d.ts | 2 +- test/ops/timeout/async.ts | 4 +-- test/ops/timeout/types/async.test-d.ts | 2 +- test/ops/timeout/types/sync.test-d.ts | 2 +- test/ops/timing/async.ts | 2 +- test/ops/timing/sync.ts | 2 +- test/ops/timing/types/async.test-d.ts | 2 +- test/ops/to-array/types/async.test-d.ts | 2 +- test/ops/to-array/types/sync.test-d.ts | 2 +- test/ops/wait-race/types/async.test-d.ts | 2 +- test/ops/wait/types/async.test-d.ts | 2 +- test/ops/zip/types/async.test-d.ts | 2 +- test/ops/zip/types/sync.test-d.ts | 2 +- 139 files changed, 245 insertions(+), 190 deletions(-) diff --git a/benchmarks/src/async.ts b/benchmarks/src/async.ts index 9294a625..7bddd268 100644 --- a/benchmarks/src/async.ts +++ b/benchmarks/src/async.ts @@ -1,6 +1,6 @@ import {testIterOps} from './tests/iter-ops'; import {testRXJS} from './tests/rxjs'; -import {toAsync} from '../../dist'; +import {toAsync} from '../../'; // tslint:disable:no-console @@ -16,8 +16,8 @@ const input: AsyncIterable = { [Symbol.asyncIterator](): AsyncIterator { const i = data.values(); return { - async next(): Promise> { - return i.next(); + next(): Promise> { + return Promise.resolve(i.next()); } }; } diff --git a/benchmarks/src/tests/iter-ops.ts b/benchmarks/src/tests/iter-ops.ts index 21f72964..711747d3 100644 --- a/benchmarks/src/tests/iter-ops.ts +++ b/benchmarks/src/tests/iter-ops.ts @@ -1,4 +1,4 @@ -import {UnknownIterable, filter, map, pipe, toArray} from '../../../dist'; +import {type UnknownIterable, filter, map, pipe, toArray} from '../../../'; export async function testIterOps(input: UnknownIterable) { const start = Date.now(); diff --git a/benchmarks/src/tests/rxjs.ts b/benchmarks/src/tests/rxjs.ts index 227496aa..04526640 100644 --- a/benchmarks/src/tests/rxjs.ts +++ b/benchmarks/src/tests/rxjs.ts @@ -1,4 +1,4 @@ -import {UnknownIterable} from '../../../dist'; +import type {UnknownIterable} from '../../../'; import {filter, firstValueFrom, from, map, toArray} from 'rxjs'; export async function testRXJS( diff --git a/src/helpers.ts b/src/helpers.ts index d23075f3..32c3a488 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -8,7 +8,7 @@ import { isIndexed, isArrayLike } from './typeguards'; -import {$A, $S, UnknownIterable} from './types'; +import {$A, $S, type UnknownIterable} from './types'; import {indexedAsyncIterable} from './utils'; /** diff --git a/src/index.ts b/src/index.ts index 97755d60..c32a0206 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export { +export type { AsyncIterableExt, IErrorContext, IterableExt, @@ -18,7 +18,7 @@ export {pipe, pipeSync, pipeAsync} from './pipe'; export {aggregate} from './ops/aggregate'; export {catchError} from './ops/catch-error'; export {concat} from './ops/concat'; -export {concurrencyFork, IConcurrencyWork} from './ops/concurrency-fork'; +export {concurrencyFork, type IConcurrencyWork} from './ops/concurrency-fork'; export {consume} from './ops/consume'; export {count} from './ops/count'; export {defaultEmpty} from './ops/default-empty'; @@ -31,15 +31,15 @@ export {filter} from './ops/filter'; export {first} from './ops/first'; export {flat} from './ops/flat'; export {flatMap} from './ops/flat-map'; -export {indexBy, IIndexedValue} from './ops/index-by'; +export {indexBy, type IIndexedValue} from './ops/index-by'; export {isEmpty} from './ops/is-empty'; export {last} from './ops/last'; export {map} from './ops/map'; export { onEnd, - IIterationSummary, - IDuration, - IValueDuration + type IIterationSummary, + type IDuration, + type IValueDuration } from './ops/on-end'; export {page} from './ops/page'; export {reduce} from './ops/reduce'; @@ -49,7 +49,12 @@ export {skip} from './ops/skip'; export {skipUntil} from './ops/skip-until'; export {skipWhile} from './ops/skip-while'; export {some} from './ops/some'; -export {split, ISplitIndex, ISplitOptions, SplitValueCarry} from './ops/split'; +export { + split, + type ISplitIndex, + type ISplitOptions, + SplitValueCarry +} from './ops/split'; export {spread} from './ops/spread'; export {take} from './ops/take'; export {takeLast} from './ops/take-last'; @@ -58,7 +63,7 @@ export {takeWhile} from './ops/take-while'; export {tap} from './ops/tap'; export {throttle} from './ops/async/throttle'; export {timeout} from './ops/timeout'; -export {timing, IValueTiming} from './ops/timing'; +export {timing, type IValueTiming} from './ops/timing'; export {toArray} from './ops/to-array'; export {wait} from './ops/async/wait'; export {waitRace} from './ops/async/wait-race'; diff --git a/src/ops/aggregate.ts b/src/ops/aggregate.ts index b42b04dd..ca22be47 100644 --- a/src/ops/aggregate.ts +++ b/src/ops/aggregate.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; import {isPromiseLike} from '../typeguards'; diff --git a/src/ops/async/delay.ts b/src/ops/async/delay.ts index df5680a6..13e08558 100644 --- a/src/ops/async/delay.ts +++ b/src/ops/async/delay.ts @@ -1,4 +1,4 @@ -import {$A, Operation, IterationState} from '../../types'; +import {$A, type Operation, type IterationState} from '../../types'; import {createOperation, throwOnSync} from '../../utils'; /** diff --git a/src/ops/async/throttle.ts b/src/ops/async/throttle.ts index 0045b410..8c8536f3 100644 --- a/src/ops/async/throttle.ts +++ b/src/ops/async/throttle.ts @@ -1,4 +1,4 @@ -import {$A, IterationState, Operation} from '../../types'; +import {$A, type IterationState, type Operation} from '../../types'; import {createOperation, throwOnSync} from '../../utils'; /** diff --git a/src/ops/async/wait-race.ts b/src/ops/async/wait-race.ts index 298e2a76..317f6f42 100644 --- a/src/ops/async/wait-race.ts +++ b/src/ops/async/wait-race.ts @@ -1,4 +1,4 @@ -import {$A, Operation} from '../../types'; +import {$A, type Operation} from '../../types'; import {isPromiseLike} from '../../typeguards'; import {createOperation, throwOnSync} from '../../utils'; @@ -114,6 +114,7 @@ export function waitRaceAsync( }, (err) => { // handle rejections from calling `i.next()` + // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors resolvers.shift()?.(Promise.reject(err)); finished = true; } diff --git a/src/ops/async/wait.ts b/src/ops/async/wait.ts index 43bbe8d4..6e053d0a 100644 --- a/src/ops/async/wait.ts +++ b/src/ops/async/wait.ts @@ -1,4 +1,4 @@ -import {$A, Operation} from '../../types'; +import {$A, type Operation} from '../../types'; import {isPromiseLike} from '../../typeguards'; import {createOperation, throwOnSync} from '../../utils'; diff --git a/src/ops/catch-error.ts b/src/ops/catch-error.ts index 4f13d9d5..918a84c4 100644 --- a/src/ops/catch-error.ts +++ b/src/ops/catch-error.ts @@ -1,4 +1,10 @@ -import {$A, $S, IErrorContext, IterationState, Operation} from '../types'; +import { + $A, + $S, + type IErrorContext, + type IterationState, + type Operation +} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/concat.ts b/src/ops/concat.ts index 5716029a..3bf2493c 100644 --- a/src/ops/concat.ts +++ b/src/ops/concat.ts @@ -1,10 +1,10 @@ import { $A, $S, - Value, - SyncValue, - Operation, - UnknownIterableOrIterator + type Value, + type SyncValue, + type Operation, + type UnknownIterableOrIterator } from '../types'; import {createOperation} from '../utils'; import {isPromiseLike} from '../typeguards'; diff --git a/src/ops/concurrency-fork.ts b/src/ops/concurrency-fork.ts index b8bf369b..8a382be5 100644 --- a/src/ops/concurrency-fork.ts +++ b/src/ops/concurrency-fork.ts @@ -129,6 +129,7 @@ function concurrencyForkAsync( return Promise.resolve({value: undefined, done}); } done = true; + // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors return Promise.reject(err); // now catchError operator can handle the error } }; diff --git a/src/ops/count.ts b/src/ops/count.ts index 8a4c6cf0..e1e75d19 100644 --- a/src/ops/count.ts +++ b/src/ops/count.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/default-empty.ts b/src/ops/default-empty.ts index 934514ca..d7f5da5c 100644 --- a/src/ops/default-empty.ts +++ b/src/ops/default-empty.ts @@ -1,9 +1,9 @@ import { - Value, - SyncValue, - UnknownIterable, - UnknownIterator, - Operation, + type Value, + type SyncValue, + type UnknownIterable, + type UnknownIterator, + type Operation, $S, $A } from '../types'; diff --git a/src/ops/distinct.ts b/src/ops/distinct.ts index b52f5e2f..2373b47e 100644 --- a/src/ops/distinct.ts +++ b/src/ops/distinct.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/drain.ts b/src/ops/drain.ts index 60d74b4d..ce1318cf 100644 --- a/src/ops/drain.ts +++ b/src/ops/drain.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/empty.ts b/src/ops/empty.ts index 3787e198..99ad4fbc 100644 --- a/src/ops/empty.ts +++ b/src/ops/empty.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/every.ts b/src/ops/every.ts index 8ff8cd10..216ba832 100644 --- a/src/ops/every.ts +++ b/src/ops/every.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/filter.ts b/src/ops/filter.ts index f4cd2ff2..3f0eaab0 100644 --- a/src/ops/filter.ts +++ b/src/ops/filter.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/first.ts b/src/ops/first.ts index e4631153..0ff51c37 100644 --- a/src/ops/first.ts +++ b/src/ops/first.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/flat-map.ts b/src/ops/flat-map.ts index 7675bf97..38e0fa37 100644 --- a/src/ops/flat-map.ts +++ b/src/ops/flat-map.ts @@ -1,4 +1,10 @@ -import {$A, $S, IterationState, Operation, UnknownIterable} from '../types'; +import { + $A, + $S, + type IterationState, + type Operation, + type UnknownIterable +} from '../types'; import {createOperation} from '../utils'; import {isPromiseLike} from '../typeguards'; diff --git a/src/ops/flat.ts b/src/ops/flat.ts index 4bd2fdb8..85144e8e 100644 --- a/src/ops/flat.ts +++ b/src/ops/flat.ts @@ -1,4 +1,10 @@ -import {$A, $S, Decrement, Operation, UnknownIterable} from '../types'; +import { + $A, + $S, + type Decrement, + type Operation, + type UnknownIterable +} from '../types'; import {createOperation} from '../utils'; /** @@ -9,19 +15,19 @@ export type Flatten = `${N}` extends `-${string}` ? T : // N = 0 - N extends 0 - ? T - : // N = 1 - N extends 1 - ? T extends UnknownIterable - ? E - : T - : // N > 20 or N is unknown - Decrement[number] extends Decrement[N] - ? unknown - : T extends UnknownIterable - ? Flatten - : Flatten; + N extends 0 + ? T + : // N = 1 + N extends 1 + ? T extends UnknownIterable + ? E + : T + : // N > 20 or N is unknown + Decrement[number] extends Decrement[N] + ? unknown + : T extends UnknownIterable + ? Flatten + : Flatten; /** * Expands / flattens sub-iterables up to the specified `depth` (default is 1), with support for `skip` logic. diff --git a/src/ops/index-by.ts b/src/ops/index-by.ts index 0febe348..9030012b 100644 --- a/src/ops/index-by.ts +++ b/src/ops/index-by.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/is-empty.ts b/src/ops/is-empty.ts index 7abe5d94..8283a286 100644 --- a/src/ops/is-empty.ts +++ b/src/ops/is-empty.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/last.ts b/src/ops/last.ts index 5042268f..d6dbf766 100644 --- a/src/ops/last.ts +++ b/src/ops/last.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/map.ts b/src/ops/map.ts index 939e8122..c1773504 100644 --- a/src/ops/map.ts +++ b/src/ops/map.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/on-end.ts b/src/ops/on-end.ts index eb8202c7..3f320856 100644 --- a/src/ops/on-end.ts +++ b/src/ops/on-end.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/page.ts b/src/ops/page.ts index bac10ece..948f5632 100644 --- a/src/ops/page.ts +++ b/src/ops/page.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation, iterateOnce} from '../utils'; /** diff --git a/src/ops/reduce.ts b/src/ops/reduce.ts index 59f08652..3a99d0ca 100644 --- a/src/ops/reduce.ts +++ b/src/ops/reduce.ts @@ -1,5 +1,5 @@ import {isPromiseLike} from '../typeguards'; -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/repeat.ts b/src/ops/repeat.ts index 0c32251d..5533f9f0 100644 --- a/src/ops/repeat.ts +++ b/src/ops/repeat.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/retry.ts b/src/ops/retry.ts index 7c0e2090..f19ca077 100644 --- a/src/ops/retry.ts +++ b/src/ops/retry.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; @@ -153,7 +153,10 @@ function retryAsync( (e) => { if (cb) { const b = (f: any) => - f ? this.next() : Promise.reject(e); + f + ? this.next() + : // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors + Promise.reject(e); const r = cb( index++, attempts++, @@ -165,6 +168,7 @@ function retryAsync( leftTries--; return this.next(); } + // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors return Promise.reject(e); } ); diff --git a/src/ops/skip-until.ts b/src/ops/skip-until.ts index 1b2d6b24..9e16ed1d 100644 --- a/src/ops/skip-until.ts +++ b/src/ops/skip-until.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/skip-while.ts b/src/ops/skip-while.ts index 200d587f..fd8b0eb8 100644 --- a/src/ops/skip-while.ts +++ b/src/ops/skip-while.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/skip.ts b/src/ops/skip.ts index b6b5d44a..40a95adb 100644 --- a/src/ops/skip.ts +++ b/src/ops/skip.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/some.ts b/src/ops/some.ts index 3f022fc8..480b4a53 100644 --- a/src/ops/some.ts +++ b/src/ops/some.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/split.ts b/src/ops/split.ts index a4a9d241..8c8a0273 100644 --- a/src/ops/split.ts +++ b/src/ops/split.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {createOperation} from '../utils'; /** @@ -178,15 +178,15 @@ function splitSync( ? (options?.carryStart as number) < 0 ? -1 : (options?.carryStart as number) > 0 - ? 1 - : 0 + ? 1 + : 0 : 0; const carryEnd = options?.carryEnd ? (options?.carryEnd as number) < 0 ? -1 : (options?.carryEnd as number) > 0 - ? 1 - : 0 + ? 1 + : 0 : 0; const toggle = !!options?.toggle; @@ -280,15 +280,15 @@ function splitAsync( ? (options?.carryStart as number) < 0 ? -1 : (options?.carryStart as number) > 0 - ? 1 - : 0 + ? 1 + : 0 : 0; const carryEnd = options?.carryEnd ? (options?.carryEnd as number) < 0 ? -1 : (options?.carryEnd as number) > 0 - ? 1 - : 0 + ? 1 + : 0 : 0; const toggle = !!options?.toggle; diff --git a/src/ops/spread.ts b/src/ops/spread.ts index fc5aafbd..30600aed 100644 --- a/src/ops/spread.ts +++ b/src/ops/spread.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation, UnknownIterable} from '../types'; +import {$A, $S, type Operation, type UnknownIterable} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/take-last.ts b/src/ops/take-last.ts index 0505ce17..75250470 100644 --- a/src/ops/take-last.ts +++ b/src/ops/take-last.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/take-until.ts b/src/ops/take-until.ts index f6753a30..9bb460a4 100644 --- a/src/ops/take-until.ts +++ b/src/ops/take-until.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/take-while.ts b/src/ops/take-while.ts index 54cf865f..3eabcb1f 100644 --- a/src/ops/take-while.ts +++ b/src/ops/take-while.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {isPromiseLike} from '../typeguards'; import {createOperation} from '../utils'; diff --git a/src/ops/take.ts b/src/ops/take.ts index 68e7944a..fdaf9a03 100644 --- a/src/ops/take.ts +++ b/src/ops/take.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/tap.ts b/src/ops/tap.ts index 5e26b4d2..788d5ebd 100644 --- a/src/ops/tap.ts +++ b/src/ops/tap.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/timeout.ts b/src/ops/timeout.ts index fc58e6cb..5eee5d02 100644 --- a/src/ops/timeout.ts +++ b/src/ops/timeout.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; /** @@ -159,6 +159,7 @@ function timeoutAsync( .catch((err) => { clearTimeout(timeoutId); done = true; + // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors reject(err); }); }); diff --git a/src/ops/timing.ts b/src/ops/timing.ts index 3766339e..2f34a1a7 100644 --- a/src/ops/timing.ts +++ b/src/ops/timing.ts @@ -1,4 +1,4 @@ -import {$A, $S, IterationState, Operation} from '../types'; +import {$A, $S, type IterationState, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/to-array.ts b/src/ops/to-array.ts index f88a637b..60fb5084 100644 --- a/src/ops/to-array.ts +++ b/src/ops/to-array.ts @@ -1,4 +1,4 @@ -import {$A, $S, Operation} from '../types'; +import {$A, $S, type Operation} from '../types'; import {createOperation} from '../utils'; /** diff --git a/src/ops/zip.ts b/src/ops/zip.ts index fecb68f6..a35d3a13 100644 --- a/src/ops/zip.ts +++ b/src/ops/zip.ts @@ -1,8 +1,8 @@ import { - UnknownIterable, - UnknownIterator, - UnknownIterableOrIterator, - Operation, + type UnknownIterable, + type UnknownIterator, + type UnknownIterableOrIterator, + type Operation, $S, $A } from '../types'; @@ -169,8 +169,8 @@ function zipAsync( typeof v[$S] === 'function' ? v[$S]() : typeof v[$A] === 'function' - ? v[$A]() - : v + ? v[$A]() + : v ) ]; const errIterator = validateZipIterators(false, list); diff --git a/src/pipe.ts b/src/pipe.ts index f9eba927..012fad0f 100644 --- a/src/pipe.ts +++ b/src/pipe.ts @@ -1,10 +1,10 @@ import { $A, $S, - UnknownIterable, - AsyncIterableExt, - IterableExt, - Operation + type UnknownIterable, + type AsyncIterableExt, + type IterableExt, + type Operation } from './types'; import {toAsync} from './helpers'; import {catchError} from './ops/catch-error'; diff --git a/src/typeguards.ts b/src/typeguards.ts index a9bb0533..b7d2d3e7 100644 --- a/src/typeguards.ts +++ b/src/typeguards.ts @@ -1,6 +1,4 @@ -import type {TypeOfTag} from 'typescript'; - -import {$A, $S, TypedArray, UnknownIterator} from './types'; +import {$A, $S, type TypedArray, type UnknownIterator} from './types'; /** * Determines if the value is a non-null object. @@ -26,7 +24,6 @@ export function hasOfType( object: T, key: K, type: 'function' - // eslint-disable-next-line @typescript-eslint/ban-types -- `Function` is the best that we can determine here. ): object is T & Record; /** @@ -41,7 +38,15 @@ export function hasOfType( export function hasOfType( object: T, key: K, - type: TypeOfTag + type: + | 'string' + | 'number' + | 'bigint' + | 'boolean' + | 'symbol' + | 'undefined' + | 'object' + | 'function' ): object is T & Record { return has(object, key) && typeof object[key] === type; } diff --git a/src/types/index.ts b/src/types/index.ts index 98cc5276..2f6e6e74 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,4 +1,4 @@ -export { +export type { IErrorContext, IterableExt, AsyncIterableExt, @@ -12,7 +12,7 @@ export { TypedArray } from './common'; -export {Decrement} from './utils'; +export type {Decrement} from './utils'; /** * These are for code abbreviation + smaller bundles: diff --git a/src/utils.ts b/src/utils.ts index d3765fa6..ab2f7d29 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,5 @@ import {isIndexed} from './typeguards'; -import {$A, $S, Operation} from './types'; +import {$A, $S, type Operation} from './types'; /** * Wraps operator signature. diff --git a/test/header.ts b/test/header.ts index 9ebf6249..d951010e 100644 --- a/test/header.ts +++ b/test/header.ts @@ -1,4 +1,4 @@ -import chai from 'chai'; +import * as chai from 'chai'; import {describe} from 'mocha'; import {toAsync} from '../src'; diff --git a/test/ops/aggregate/types/async.test-d.ts b/test/ops/aggregate/types/async.test-d.ts index f9a32857..03abc271 100644 --- a/test/ops/aggregate/types/async.test-d.ts +++ b/test/ops/aggregate/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, aggregate, AsyncIterableExt} from '../../../../src'; +import {pipe, aggregate, type AsyncIterableExt} from '../../../../src'; declare const iterableString: AsyncIterable; diff --git a/test/ops/aggregate/types/sync.test-d.ts b/test/ops/aggregate/types/sync.test-d.ts index bb76df66..6a75ab73 100644 --- a/test/ops/aggregate/types/sync.test-d.ts +++ b/test/ops/aggregate/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, aggregate, IterableExt} from '../../../../src'; +import {pipe, aggregate, type IterableExt} from '../../../../src'; declare const iterableString: Iterable; diff --git a/test/ops/catch-error/types/async.test-d.ts b/test/ops/catch-error/types/async.test-d.ts index 09e9b05d..8b3dfa44 100644 --- a/test/ops/catch-error/types/async.test-d.ts +++ b/test/ops/catch-error/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, catchError, AsyncIterableExt} from '../../../../src'; +import {pipe, catchError, type AsyncIterableExt} from '../../../../src'; declare const iterableString: AsyncIterable; diff --git a/test/ops/catch-error/types/sync.test-d.ts b/test/ops/catch-error/types/sync.test-d.ts index 640a6d95..18ab0b2c 100644 --- a/test/ops/catch-error/types/sync.test-d.ts +++ b/test/ops/catch-error/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, catchError, IterableExt} from '../../../../src'; +import {pipe, catchError, type IterableExt} from '../../../../src'; declare const iterableString: Iterable; diff --git a/test/ops/concat/types/async.test-d.ts b/test/ops/concat/types/async.test-d.ts index 1bdf1fea..97b3eeb9 100644 --- a/test/ops/concat/types/async.test-d.ts +++ b/test/ops/concat/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, concat, pipe} from '../../../../src'; +import {type AsyncIterableExt, concat, pipe} from '../../../../src'; declare const iterableString: AsyncIterable; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/concat/types/sync.test-d.ts b/test/ops/concat/types/sync.test-d.ts index d4e47102..3b22d1c8 100644 --- a/test/ops/concat/types/sync.test-d.ts +++ b/test/ops/concat/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {concat, IterableExt, pipe} from '../../../../src'; +import {concat, type IterableExt, pipe} from '../../../../src'; declare const iterableString: Iterable; declare const iterableNumber: Iterable; diff --git a/test/ops/concurrency-fork/types/async.test-d.ts b/test/ops/concurrency-fork/types/async.test-d.ts index 7b720bec..64a34dc7 100644 --- a/test/ops/concurrency-fork/types/async.test-d.ts +++ b/test/ops/concurrency-fork/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, pipe, concurrencyFork} from '../../../../src'; +import {type AsyncIterableExt, pipe, concurrencyFork} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/concurrency-fork/types/sync.test-d.ts b/test/ops/concurrency-fork/types/sync.test-d.ts index f148f117..51e9d7ba 100644 --- a/test/ops/concurrency-fork/types/sync.test-d.ts +++ b/test/ops/concurrency-fork/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {IterableExt, pipe, concurrencyFork} from '../../../../src'; +import {type IterableExt, pipe, concurrencyFork} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/consume/types/async.test-d.ts b/test/ops/consume/types/async.test-d.ts index ff41519e..abcfe1d3 100644 --- a/test/ops/consume/types/async.test-d.ts +++ b/test/ops/consume/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, pipe, consume} from '../../../../src'; +import {type AsyncIterableExt, pipe, consume} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/consume/types/sync.test-d.ts b/test/ops/consume/types/sync.test-d.ts index 8e5f378e..b7efaf23 100644 --- a/test/ops/consume/types/sync.test-d.ts +++ b/test/ops/consume/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {IterableExt, pipe, consume} from '../../../../src'; +import {type IterableExt, pipe, consume} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/count/types/async.test-d.ts b/test/ops/count/types/async.test-d.ts index 42d5c4ab..ee43f140 100644 --- a/test/ops/count/types/async.test-d.ts +++ b/test/ops/count/types/async.test-d.ts @@ -1,5 +1,5 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, count, pipe} from '../../../../src'; +import {type AsyncIterableExt, count, pipe} from '../../../../src'; declare const iterableString: AsyncIterable; diff --git a/test/ops/count/types/sync.test-d.ts b/test/ops/count/types/sync.test-d.ts index 74a085e8..2a713e46 100644 --- a/test/ops/count/types/sync.test-d.ts +++ b/test/ops/count/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {count, IterableExt, pipe} from '../../../../src'; +import {count, type IterableExt, pipe} from '../../../../src'; declare const iterableString: Iterable; diff --git a/test/ops/default-empty/types/async.test-d.ts b/test/ops/default-empty/types/async.test-d.ts index 0664f26a..e8cda513 100644 --- a/test/ops/default-empty/types/async.test-d.ts +++ b/test/ops/default-empty/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, defaultEmpty, pipe} from '../../../../src'; +import {type AsyncIterableExt, defaultEmpty, pipe} from '../../../../src'; declare const iterableString: AsyncIterable; diff --git a/test/ops/default-empty/types/sync.test-d.ts b/test/ops/default-empty/types/sync.test-d.ts index 84b19c4c..35f332d2 100644 --- a/test/ops/default-empty/types/sync.test-d.ts +++ b/test/ops/default-empty/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {defaultEmpty, IterableExt, pipe} from '../../../../src'; +import {defaultEmpty, type IterableExt, pipe} from '../../../../src'; declare const iterableString: Iterable; diff --git a/test/ops/delay/types/async.test-d.ts b/test/ops/delay/types/async.test-d.ts index 580370c3..9a8005cf 100644 --- a/test/ops/delay/types/async.test-d.ts +++ b/test/ops/delay/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, delay, pipe} from '../../../../src'; +import {type AsyncIterableExt, delay, pipe} from '../../../../src'; declare const iterableString: AsyncIterable; diff --git a/test/ops/distinct/types/async.test-d.ts b/test/ops/distinct/types/async.test-d.ts index 8e59481f..ebce339b 100644 --- a/test/ops/distinct/types/async.test-d.ts +++ b/test/ops/distinct/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, distinct, pipe} from '../../../../src'; +import {type AsyncIterableExt, distinct, pipe} from '../../../../src'; declare const iterableString: AsyncIterable; diff --git a/test/ops/distinct/types/sync.test-d.ts b/test/ops/distinct/types/sync.test-d.ts index dcd683c8..d38ecb87 100644 --- a/test/ops/distinct/types/sync.test-d.ts +++ b/test/ops/distinct/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {distinct, IterableExt, pipe} from '../../../../src'; +import {distinct, type IterableExt, pipe} from '../../../../src'; declare const iterableString: Iterable; diff --git a/test/ops/drain/types/async.test-d.ts b/test/ops/drain/types/async.test-d.ts index 92499512..f4589e8e 100644 --- a/test/ops/drain/types/async.test-d.ts +++ b/test/ops/drain/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, drain, pipe} from '../../../../src'; +import {type AsyncIterableExt, drain, pipe} from '../../../../src'; declare const iterableString: AsyncIterable; diff --git a/test/ops/drain/types/sync.test-d.ts b/test/ops/drain/types/sync.test-d.ts index 66aad7fa..f09bc8f3 100644 --- a/test/ops/drain/types/sync.test-d.ts +++ b/test/ops/drain/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {drain, IterableExt, pipe} from '../../../../src'; +import {drain, type IterableExt, pipe} from '../../../../src'; declare const iterableString: Iterable; diff --git a/test/ops/empty/types/async.test-d.ts b/test/ops/empty/types/async.test-d.ts index 41704996..de3969b0 100644 --- a/test/ops/empty/types/async.test-d.ts +++ b/test/ops/empty/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, empty, pipe} from '../../../../src'; +import {type AsyncIterableExt, empty, pipe} from '../../../../src'; declare const iterableString: AsyncIterable; diff --git a/test/ops/empty/types/sync.test-d.ts b/test/ops/empty/types/sync.test-d.ts index 03716039..b469eeb5 100644 --- a/test/ops/empty/types/sync.test-d.ts +++ b/test/ops/empty/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {empty, IterableExt, pipe} from '../../../../src'; +import {empty, type IterableExt, pipe} from '../../../../src'; declare const iterableString: Iterable; diff --git a/test/ops/every/types/async.test-d.ts b/test/ops/every/types/async.test-d.ts index 15e51db8..9bf1ad26 100644 --- a/test/ops/every/types/async.test-d.ts +++ b/test/ops/every/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, every, pipe} from '../../../../src'; +import {type AsyncIterableExt, every, pipe} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/every/types/sync.test-d.ts b/test/ops/every/types/sync.test-d.ts index 87df95be..1629926a 100644 --- a/test/ops/every/types/sync.test-d.ts +++ b/test/ops/every/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {every, IterableExt, pipe} from '../../../../src'; +import {every, type IterableExt, pipe} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/filter/types/async.test-d.ts b/test/ops/filter/types/async.test-d.ts index 2429b512..5761abb9 100644 --- a/test/ops/filter/types/async.test-d.ts +++ b/test/ops/filter/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, filter, pipe} from '../../../../src'; +import {type AsyncIterableExt, filter, pipe} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/filter/types/sync.test-d.ts b/test/ops/filter/types/sync.test-d.ts index 79d6dfa6..a4bd51e3 100644 --- a/test/ops/filter/types/sync.test-d.ts +++ b/test/ops/filter/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {filter, IterableExt, pipe} from '../../../../src'; +import {filter, type IterableExt, pipe} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/first/types/async.test-d.ts b/test/ops/first/types/async.test-d.ts index 160ff9bf..f4c6e9dd 100644 --- a/test/ops/first/types/async.test-d.ts +++ b/test/ops/first/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, first, pipe} from '../../../../src'; +import {type AsyncIterableExt, first, pipe} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/first/types/sync.test-d.ts b/test/ops/first/types/sync.test-d.ts index 2ed8aa03..9a70d51e 100644 --- a/test/ops/first/types/sync.test-d.ts +++ b/test/ops/first/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {first, IterableExt, pipe} from '../../../../src'; +import {first, type IterableExt, pipe} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/flat-map/types/async.test-d.ts b/test/ops/flat-map/types/async.test-d.ts index c9ffd279..27e381cd 100644 --- a/test/ops/flat-map/types/async.test-d.ts +++ b/test/ops/flat-map/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectAssignable, expectType} from 'tsd'; -import {AsyncIterableExt, flatMap, pipeAsync} from '../../../../src'; +import {type AsyncIterableExt, flatMap, pipeAsync} from '../../../../src'; declare const iterable1: AsyncIterable>; declare const iterable2: AsyncIterable>; diff --git a/test/ops/flat-map/types/sync.test-d.ts b/test/ops/flat-map/types/sync.test-d.ts index 29e8c0fe..778915df 100644 --- a/test/ops/flat-map/types/sync.test-d.ts +++ b/test/ops/flat-map/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {flatMap, IterableExt, pipeSync} from '../../../../src'; +import {flatMap, type IterableExt, pipeSync} from '../../../../src'; declare const iterableNumber: Iterable>; declare const iterableEntries: IterableIterator<[string, number]>; diff --git a/test/ops/flat/types/async.test-d.ts b/test/ops/flat/types/async.test-d.ts index 5c2507d9..13985628 100644 --- a/test/ops/flat/types/async.test-d.ts +++ b/test/ops/flat/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, flat, pipe} from '../../../../src'; +import {type AsyncIterableExt, flat, pipe} from '../../../../src'; declare const iterable1: AsyncIterable>; declare const iterable2: AsyncIterable>; diff --git a/test/ops/flat/types/sync.test-d.ts b/test/ops/flat/types/sync.test-d.ts index 34241a38..98470074 100644 --- a/test/ops/flat/types/sync.test-d.ts +++ b/test/ops/flat/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {flat, IterableExt, pipe} from '../../../../src'; +import {flat, type IterableExt, pipe} from '../../../../src'; declare const iterableNumber: Iterable>; declare const iterableDeep: Iterable< diff --git a/test/ops/index-by/types/async.test-d.ts b/test/ops/index-by/types/async.test-d.ts index 8373f07b..de3ef28e 100644 --- a/test/ops/index-by/types/async.test-d.ts +++ b/test/ops/index-by/types/async.test-d.ts @@ -1,6 +1,11 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, IIndexedValue, indexBy, pipe} from '../../../../src'; +import { + type AsyncIterableExt, + type IIndexedValue, + indexBy, + pipe +} from '../../../../src'; declare const iterableString: AsyncIterable; diff --git a/test/ops/index-by/types/sync.test-d.ts b/test/ops/index-by/types/sync.test-d.ts index f2195bcc..6cd6ee2d 100644 --- a/test/ops/index-by/types/sync.test-d.ts +++ b/test/ops/index-by/types/sync.test-d.ts @@ -1,6 +1,11 @@ import {expectType} from 'tsd'; -import {IIndexedValue, indexBy, IterableExt, pipe} from '../../../../src'; +import { + type IIndexedValue, + indexBy, + type IterableExt, + pipe +} from '../../../../src'; declare const iterableString: Iterable; diff --git a/test/ops/is-empty/types/async.test-d.ts b/test/ops/is-empty/types/async.test-d.ts index 89324a1c..4d8f4ba6 100644 --- a/test/ops/is-empty/types/async.test-d.ts +++ b/test/ops/is-empty/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, isEmpty, pipe} from '../../../../src'; +import {type AsyncIterableExt, isEmpty, pipe} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/is-empty/types/sync.test-d.ts b/test/ops/is-empty/types/sync.test-d.ts index 17255498..bfe4fcef 100644 --- a/test/ops/is-empty/types/sync.test-d.ts +++ b/test/ops/is-empty/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {isEmpty, IterableExt, pipe} from '../../../../src'; +import {isEmpty, type IterableExt, pipe} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/last/types/async.test-d.ts b/test/ops/last/types/async.test-d.ts index 3d4a959c..33d23102 100644 --- a/test/ops/last/types/async.test-d.ts +++ b/test/ops/last/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, last, pipe} from '../../../../src'; +import {type AsyncIterableExt, last, pipe} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/last/types/sync.test-d.ts b/test/ops/last/types/sync.test-d.ts index 876adaac..2be1acb3 100644 --- a/test/ops/last/types/sync.test-d.ts +++ b/test/ops/last/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {IterableExt, last, pipe} from '../../../../src'; +import {type IterableExt, last, pipe} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/map/types/async.test-d.ts b/test/ops/map/types/async.test-d.ts index 347d758f..d1099fc3 100644 --- a/test/ops/map/types/async.test-d.ts +++ b/test/ops/map/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, map, pipe} from '../../../../src'; +import {type AsyncIterableExt, map, pipe} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/map/types/sync.test-d.ts b/test/ops/map/types/sync.test-d.ts index 0c0eacb0..c081b2f8 100644 --- a/test/ops/map/types/sync.test-d.ts +++ b/test/ops/map/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {IterableExt, map, pipe} from '../../../../src'; +import {type IterableExt, map, pipe} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/on-end/async.ts b/test/ops/on-end/async.ts index a4d2eee5..a073e8b9 100644 --- a/test/ops/on-end/async.ts +++ b/test/ops/on-end/async.ts @@ -1,5 +1,5 @@ import {_async, _asyncValues, expect} from '../../header'; -import {pipe, delay, onEnd, IIterationSummary} from '../../../src'; +import {pipe, delay, onEnd, type IIterationSummary} from '../../../src'; export default () => { it('must notify for non-empty iterables', async () => { diff --git a/test/ops/on-end/sync.ts b/test/ops/on-end/sync.ts index 13069676..8b33af32 100644 --- a/test/ops/on-end/sync.ts +++ b/test/ops/on-end/sync.ts @@ -1,5 +1,5 @@ import {expect} from '../../header'; -import {pipe, onEnd, IIterationSummary} from '../../../src'; +import {pipe, onEnd, type IIterationSummary} from '../../../src'; export default () => { it('must notify for non-empty iterables', () => { diff --git a/test/ops/on-end/types/async.test-d.ts b/test/ops/on-end/types/async.test-d.ts index 6bbb9c9c..5c2fb86a 100644 --- a/test/ops/on-end/types/async.test-d.ts +++ b/test/ops/on-end/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, onEnd, pipe} from '../../../../src'; +import {type AsyncIterableExt, onEnd, pipe} from '../../../../src'; declare const iterableString: AsyncIterable; diff --git a/test/ops/on-end/types/sync.test-d.ts b/test/ops/on-end/types/sync.test-d.ts index 659aca50..51abdc0b 100644 --- a/test/ops/on-end/types/sync.test-d.ts +++ b/test/ops/on-end/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {IterableExt, onEnd, pipe} from '../../../../src'; +import {type IterableExt, onEnd, pipe} from '../../../../src'; declare const iterableString: Iterable; diff --git a/test/ops/page/types/async.test-d.ts b/test/ops/page/types/async.test-d.ts index 71528c3d..cb098e20 100644 --- a/test/ops/page/types/async.test-d.ts +++ b/test/ops/page/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {AsyncIterableExt, page, pipe} from '../../../../src'; +import {type AsyncIterableExt, page, pipe} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/page/types/sync.test-d.ts b/test/ops/page/types/sync.test-d.ts index e0d6154e..9173c6b2 100644 --- a/test/ops/page/types/sync.test-d.ts +++ b/test/ops/page/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {IterableExt, page, pipe} from '../../../../src'; +import {type IterableExt, page, pipe} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/reduce/types/async.test-d.ts b/test/ops/reduce/types/async.test-d.ts index c3a124f1..e0278724 100644 --- a/test/ops/reduce/types/async.test-d.ts +++ b/test/ops/reduce/types/async.test-d.ts @@ -1,6 +1,11 @@ import {expectType} from 'tsd'; -import {reduce, pipe, AsyncIterableExt, IterationState} from '../../../../src'; +import { + reduce, + pipe, + type AsyncIterableExt, + type IterationState +} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/reduce/types/sync.test-d.ts b/test/ops/reduce/types/sync.test-d.ts index 613eaf1e..0f0a7d25 100644 --- a/test/ops/reduce/types/sync.test-d.ts +++ b/test/ops/reduce/types/sync.test-d.ts @@ -1,6 +1,11 @@ import {expectType} from 'tsd'; -import {reduce, pipe, IterableExt, IterationState} from '../../../../src'; +import { + reduce, + pipe, + type IterableExt, + type IterationState +} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/repeat/types/async.test-d.ts b/test/ops/repeat/types/async.test-d.ts index d1562391..e59e578c 100644 --- a/test/ops/repeat/types/async.test-d.ts +++ b/test/ops/repeat/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {repeat, pipe, AsyncIterableExt} from '../../../../src'; +import {repeat, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/repeat/types/sync.test-d.ts b/test/ops/repeat/types/sync.test-d.ts index e10cb544..302accb1 100644 --- a/test/ops/repeat/types/sync.test-d.ts +++ b/test/ops/repeat/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {repeat, pipe, IterableExt} from '../../../../src'; +import {repeat, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/retry/types/async.test-d.ts b/test/ops/retry/types/async.test-d.ts index 68289f00..c941d39e 100644 --- a/test/ops/retry/types/async.test-d.ts +++ b/test/ops/retry/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {retry, pipe, AsyncIterableExt} from '../../../../src'; +import {retry, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/skip-until/types/async.test-d.ts b/test/ops/skip-until/types/async.test-d.ts index b87839e0..e3161595 100644 --- a/test/ops/skip-until/types/async.test-d.ts +++ b/test/ops/skip-until/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, skipUntil, AsyncIterableExt} from '../../../../src'; +import {pipe, skipUntil, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/skip-until/types/sync.test-d.ts b/test/ops/skip-until/types/sync.test-d.ts index b79d9bb2..342fdb90 100644 --- a/test/ops/skip-until/types/sync.test-d.ts +++ b/test/ops/skip-until/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, skipUntil, IterableExt} from '../../../../src'; +import {pipe, skipUntil, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/skip-while/types/async.test-d.ts b/test/ops/skip-while/types/async.test-d.ts index 9549a1a7..97cd5258 100644 --- a/test/ops/skip-while/types/async.test-d.ts +++ b/test/ops/skip-while/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, skipWhile, AsyncIterableExt} from '../../../../src'; +import {pipe, skipWhile, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/skip-while/types/sync.test-d.ts b/test/ops/skip-while/types/sync.test-d.ts index 65a40140..bdd0f3de 100644 --- a/test/ops/skip-while/types/sync.test-d.ts +++ b/test/ops/skip-while/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, skipWhile, IterableExt} from '../../../../src'; +import {pipe, skipWhile, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/skip/types/async.test-d.ts b/test/ops/skip/types/async.test-d.ts index 7d7a416b..c5d02e89 100644 --- a/test/ops/skip/types/async.test-d.ts +++ b/test/ops/skip/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {skip, pipe, AsyncIterableExt} from '../../../../src'; +import {skip, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/skip/types/sync.test-d.ts b/test/ops/skip/types/sync.test-d.ts index 807ee38c..39a11a42 100644 --- a/test/ops/skip/types/sync.test-d.ts +++ b/test/ops/skip/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {skip, pipe, IterableExt} from '../../../../src'; +import {skip, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/some/types/async.test-d.ts b/test/ops/some/types/async.test-d.ts index 5d538d02..a76c14ad 100644 --- a/test/ops/some/types/async.test-d.ts +++ b/test/ops/some/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {some, pipe, AsyncIterableExt} from '../../../../src'; +import {some, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/some/types/sync.test-d.ts b/test/ops/some/types/sync.test-d.ts index 004a0121..b5867221 100644 --- a/test/ops/some/types/sync.test-d.ts +++ b/test/ops/some/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {some, pipe, IterableExt} from '../../../../src'; +import {some, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/split/async.ts b/test/ops/split/async.ts index 3e688117..10ed6b65 100644 --- a/test/ops/split/async.ts +++ b/test/ops/split/async.ts @@ -1,5 +1,5 @@ import {_async, _asyncValues, expect} from '../../header'; -import {pipe, split, SplitValueCarry, ISplitIndex} from '../../../src'; +import {pipe, split, SplitValueCarry, type ISplitIndex} from '../../../src'; export default () => { describe('without options', () => { diff --git a/test/ops/split/sync.ts b/test/ops/split/sync.ts index f8423fba..f96b9a24 100644 --- a/test/ops/split/sync.ts +++ b/test/ops/split/sync.ts @@ -1,5 +1,5 @@ import {expect} from '../../header'; -import {pipe, split, SplitValueCarry, ISplitIndex} from '../../../src'; +import {pipe, split, SplitValueCarry, type ISplitIndex} from '../../../src'; export default () => { describe('without options', () => { diff --git a/test/ops/split/types/async.test-d.ts b/test/ops/split/types/async.test-d.ts index 503c20b7..7f666db1 100644 --- a/test/ops/split/types/async.test-d.ts +++ b/test/ops/split/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {split, pipe, AsyncIterableExt} from '../../../../src'; +import {split, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/split/types/sync.test-d.ts b/test/ops/split/types/sync.test-d.ts index 75d8ce71..c0bc1896 100644 --- a/test/ops/split/types/sync.test-d.ts +++ b/test/ops/split/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {split, pipe, IterableExt} from '../../../../src'; +import {split, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/spread/types/async.test-d.ts b/test/ops/spread/types/async.test-d.ts index b1bb1609..bd19f017 100644 --- a/test/ops/spread/types/async.test-d.ts +++ b/test/ops/spread/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {spread, pipe, AsyncIterableExt} from '../../../../src'; +import {spread, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterable1: AsyncIterable>; declare const iterable2: AsyncIterable>; diff --git a/test/ops/spread/types/sync.test-d.ts b/test/ops/spread/types/sync.test-d.ts index 9b2da4a2..e3ac8a06 100644 --- a/test/ops/spread/types/sync.test-d.ts +++ b/test/ops/spread/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {spread, pipe, IterableExt} from '../../../../src'; +import {spread, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable>; diff --git a/test/ops/take-last/types/async.test-d.ts b/test/ops/take-last/types/async.test-d.ts index 84c68162..fcf7fdc8 100644 --- a/test/ops/take-last/types/async.test-d.ts +++ b/test/ops/take-last/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {takeLast, pipe, AsyncIterableExt} from '../../../../src'; +import {takeLast, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/take-last/types/sync.test-d.ts b/test/ops/take-last/types/sync.test-d.ts index 8a3fc7c0..19303113 100644 --- a/test/ops/take-last/types/sync.test-d.ts +++ b/test/ops/take-last/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {takeLast, pipe, IterableExt} from '../../../../src'; +import {takeLast, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/take-until/types/async.test-d.ts b/test/ops/take-until/types/async.test-d.ts index 80234dd0..b301587a 100644 --- a/test/ops/take-until/types/async.test-d.ts +++ b/test/ops/take-until/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, takeUntil, AsyncIterableExt} from '../../../../src'; +import {pipe, takeUntil, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/take-until/types/sync.test-d.ts b/test/ops/take-until/types/sync.test-d.ts index 559e7610..09aa6a9d 100644 --- a/test/ops/take-until/types/sync.test-d.ts +++ b/test/ops/take-until/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, takeUntil, IterableExt} from '../../../../src'; +import {pipe, takeUntil, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/take-while/types/async.test-d.ts b/test/ops/take-while/types/async.test-d.ts index de05afa9..3641a3af 100644 --- a/test/ops/take-while/types/async.test-d.ts +++ b/test/ops/take-while/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, takeWhile, AsyncIterableExt} from '../../../../src'; +import {pipe, takeWhile, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/take-while/types/sync.test-d.ts b/test/ops/take-while/types/sync.test-d.ts index 6c32d33f..30f27146 100644 --- a/test/ops/take-while/types/sync.test-d.ts +++ b/test/ops/take-while/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {pipe, takeWhile, IterableExt} from '../../../../src'; +import {pipe, takeWhile, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/take/types/async.test-d.ts b/test/ops/take/types/async.test-d.ts index c59c218c..3c7afb9a 100644 --- a/test/ops/take/types/async.test-d.ts +++ b/test/ops/take/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {take, pipe, AsyncIterableExt} from '../../../../src'; +import {take, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/take/types/sync.test-d.ts b/test/ops/take/types/sync.test-d.ts index 6b9b070e..830d3748 100644 --- a/test/ops/take/types/sync.test-d.ts +++ b/test/ops/take/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {take, pipe, IterableExt} from '../../../../src'; +import {take, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/tap/types/async.test-d.ts b/test/ops/tap/types/async.test-d.ts index a27a3983..4336883e 100644 --- a/test/ops/tap/types/async.test-d.ts +++ b/test/ops/tap/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {tap, pipe, AsyncIterableExt} from '../../../../src'; +import {tap, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/tap/types/sync.test-d.ts b/test/ops/tap/types/sync.test-d.ts index 6760b9c7..f65ef121 100644 --- a/test/ops/tap/types/sync.test-d.ts +++ b/test/ops/tap/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {tap, pipe, IterableExt} from '../../../../src'; +import {tap, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/throttle/types/async.test-d.ts b/test/ops/throttle/types/async.test-d.ts index a84e41d4..3f4dd24f 100644 --- a/test/ops/throttle/types/async.test-d.ts +++ b/test/ops/throttle/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {throttle, pipe, AsyncIterableExt} from '../../../../src'; +import {throttle, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/timeout/async.ts b/test/ops/timeout/async.ts index 5e51eb80..8d0baa2c 100644 --- a/test/ops/timeout/async.ts +++ b/test/ops/timeout/async.ts @@ -4,8 +4,8 @@ import { delay, timeout, tap, - IterationState, - Operation + type IterationState, + type Operation } from '../../../src'; export default () => { diff --git a/test/ops/timeout/types/async.test-d.ts b/test/ops/timeout/types/async.test-d.ts index 33360f95..8a6c4852 100644 --- a/test/ops/timeout/types/async.test-d.ts +++ b/test/ops/timeout/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {timeout, pipe, AsyncIterableExt} from '../../../../src'; +import {timeout, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/timeout/types/sync.test-d.ts b/test/ops/timeout/types/sync.test-d.ts index 91b1eb5d..f2e433e7 100644 --- a/test/ops/timeout/types/sync.test-d.ts +++ b/test/ops/timeout/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {timeout, pipe, IterableExt} from '../../../../src'; +import {timeout, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/timing/async.ts b/test/ops/timing/async.ts index 2ba1af1f..3933c4b2 100644 --- a/test/ops/timing/async.ts +++ b/test/ops/timing/async.ts @@ -1,5 +1,5 @@ import {_async, _asyncValues, expect} from '../../header'; -import {IValueTiming, pipe, timing, delay} from '../../../src'; +import {type IValueTiming, pipe, timing, delay} from '../../../src'; export default () => { it('must emit correct timings', async () => { diff --git a/test/ops/timing/sync.ts b/test/ops/timing/sync.ts index b1925085..5d76fd2b 100644 --- a/test/ops/timing/sync.ts +++ b/test/ops/timing/sync.ts @@ -1,5 +1,5 @@ import {expect} from '../../header'; -import {IValueTiming, pipe, timing} from '../../../src'; +import {type IValueTiming, pipe, timing} from '../../../src'; export default () => { it('must emit correct timings', () => { diff --git a/test/ops/timing/types/async.test-d.ts b/test/ops/timing/types/async.test-d.ts index e0d12b5e..735a8269 100644 --- a/test/ops/timing/types/async.test-d.ts +++ b/test/ops/timing/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {timing, pipe, AsyncIterableExt} from '../../../../src'; +import {timing, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/to-array/types/async.test-d.ts b/test/ops/to-array/types/async.test-d.ts index 491e383b..76029cb3 100644 --- a/test/ops/to-array/types/async.test-d.ts +++ b/test/ops/to-array/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {toArray, pipe, AsyncIterableExt} from '../../../../src'; +import {toArray, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; diff --git a/test/ops/to-array/types/sync.test-d.ts b/test/ops/to-array/types/sync.test-d.ts index dfe1f1d7..3afd04d9 100644 --- a/test/ops/to-array/types/sync.test-d.ts +++ b/test/ops/to-array/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {toArray, pipe, IterableExt} from '../../../../src'; +import {toArray, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; diff --git a/test/ops/wait-race/types/async.test-d.ts b/test/ops/wait-race/types/async.test-d.ts index f237819d..508a792f 100644 --- a/test/ops/wait-race/types/async.test-d.ts +++ b/test/ops/wait-race/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {waitRace, pipe, AsyncIterableExt} from '../../../../src'; +import {waitRace, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable>; diff --git a/test/ops/wait/types/async.test-d.ts b/test/ops/wait/types/async.test-d.ts index 078fb7f5..c937142a 100644 --- a/test/ops/wait/types/async.test-d.ts +++ b/test/ops/wait/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {wait, pipe, AsyncIterableExt} from '../../../../src'; +import {wait, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable>; diff --git a/test/ops/zip/types/async.test-d.ts b/test/ops/zip/types/async.test-d.ts index 447f7fd4..561d2886 100644 --- a/test/ops/zip/types/async.test-d.ts +++ b/test/ops/zip/types/async.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {zip, pipe, AsyncIterableExt} from '../../../../src'; +import {zip, pipe, type AsyncIterableExt} from '../../../../src'; declare const iterableNumber: AsyncIterable; declare const iterableString: Iterable; diff --git a/test/ops/zip/types/sync.test-d.ts b/test/ops/zip/types/sync.test-d.ts index fbd25158..0a3bf398 100644 --- a/test/ops/zip/types/sync.test-d.ts +++ b/test/ops/zip/types/sync.test-d.ts @@ -1,6 +1,6 @@ import {expectType} from 'tsd'; -import {zip, pipe, IterableExt} from '../../../../src'; +import {zip, pipe, type IterableExt} from '../../../../src'; declare const iterableNumber: Iterable; declare const iterableString: Iterable;