From 97aff64d23bfd72ebcae6c8753f28518ded3e1c7 Mon Sep 17 00:00:00 2001 From: Vasili Karaev Date: Thu, 5 Aug 2021 12:28:57 +0300 Subject: [PATCH] Make thread non-variadic --- fn/thread.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fn/thread.ts b/fn/thread.ts index 25136fc..4dce67f 100644 --- a/fn/thread.ts +++ b/fn/thread.ts @@ -2,10 +2,9 @@ import * as R from 'ramda' type Transformer = (value: any) => any -// eslint-disable-next-line @typescript-eslint/no-explicit-any const pipe = R.pipe as unknown as (...fs: Transformer[]) => (value: any) => any -export const thread = (value: any, ...fs: Transformer[]) => { +export const thread = (value: any, fs: Transformer[]) => { const transform = pipe(...fs) return transform(value)