From 1f75849cd8b6d27dec94995085428393578036cc Mon Sep 17 00:00:00 2001 From: Giacomo Citi Date: Tue, 11 Jun 2024 17:51:23 +0200 Subject: [PATCH] let result type of sort be inferred --- sorting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorting.ts b/sorting.ts index 382ba61..17f5acf 100644 --- a/sorting.ts +++ b/sorting.ts @@ -119,7 +119,7 @@ export const defaultOptions = () => ({ maxFiles: undefined }) -export async function * sort (iterable: Iterable, options?: Options) : AsyncGenerator { +export async function * sort (iterable: Iterable, options?: Options) { const { maxSize, maxFiles, comparer, store } = options?? defaultOptions() try { const sortedChunks = getSortedChunks(iterable, { maxSize, comparer, store })