From 952643e0b5de9eb4da5b8d624ab7199075acb5c1 Mon Sep 17 00:00:00 2001 From: Masanori Onoue Date: Tue, 16 Jul 2024 04:06:46 +0900 Subject: [PATCH] update README and other. --- README.md | 1 + packages/leseq/tests/testUtil.ts | 2 +- packages/leseq/tsconfig.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2cfe832..4703b56 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,7 @@ It is used within the pipe method of the Seq<T> object. Any number of oper | --- | --- | | [catchError](https://ugaya40.github.io/leseq/api/operators/#catchError) | If the original iterable sequence raises an exception, the specified action is performed, terminating the enumeration or enumerating an alternate sequence. (async version: [catchErrorAsync](https://ugaya40.github.io/leseq/api/operators/#catcherrorasync) ) | | | [chunk](https://ugaya40.github.io/leseq/api/operators/#chunk) | Returns a sequence divided into array of the specified size. (async version: [chunkAsync](https://ugaya40.github.io/leseq/api/operators/#chunkasync) ) | | +| [chunkByAccumulation](https://ugaya40.github.io/leseq/api/operators/#chunkByAccumulation) | Returns a sequence divided into arrays based on an accumulation function and a threshold condition. (async version: [chunkByAccumulationAsync](https://ugaya40.github.io/leseq/api/operators/#chunkByAccumulationAsync) ) | | | [concat](https://ugaya40.github.io/leseq/api/operators/#concat) | Returns a sequence in which the current sequence and the specified sequence are concatenated. (async version: [concatAsync](https://ugaya40.github.io/leseq/api/operators/#concatasync) ) | | | [concatValue](https://ugaya40.github.io/leseq/api/operators/#concatvalue) | Returns the sequence to which the specified value is added. (async version: [concatValueAsync](https://ugaya40.github.io/leseq/api/operators/#concatvalueasync) ) | | | [difference](https://ugaya40.github.io/leseq/api/operators/#difference) | Returns the sequence that is the difference set between the current sequence and the specified sequence. (async version: [differenceAsync](https://ugaya40.github.io/leseq/api/operators/#differenceasync) ) | | diff --git a/packages/leseq/tests/testUtil.ts b/packages/leseq/tests/testUtil.ts index 94537d4..866bde2 100644 --- a/packages/leseq/tests/testUtil.ts +++ b/packages/leseq/tests/testUtil.ts @@ -10,7 +10,7 @@ export const abortableSleep = (ms: number, signal?: AbortSignal) => new Promise< setTimeout(resolve,ms) }); -export const performanceAsync = async (func: () => Promise) => { +export const performanceAsync = async (func: () => Promise): Promise<[Awaited, number]> => { const startTime = performance.now(); const result = await func(); const endTime = performance.now(); diff --git a/packages/leseq/tsconfig.json b/packages/leseq/tsconfig.json index 6f1e313..c0e274d 100644 --- a/packages/leseq/tsconfig.json +++ b/packages/leseq/tsconfig.json @@ -5,6 +5,7 @@ "strict": true, "outDir": "./dist", "moduleResolution": "Node", + "esModuleInterop": true, "noImplicitAny": true, "declaration": true, },