From 394d267d7495387d15e5d5a7a26b96bf29f372f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Mon, 19 Feb 2024 17:53:23 +0100 Subject: [PATCH] Fix --- src/util/extend.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/util/extend.ts b/src/util/extend.ts index 3269bab..b8f2e95 100644 --- a/src/util/extend.ts +++ b/src/util/extend.ts @@ -11,6 +11,14 @@ import { CommonKeys } from "." // } // export type ExtendFn = Tuples.Reduce +// export type ExtendableFn = ComposeLeft<[ +// ExtendFn, +// Match<[ +// Match.With, +// Match.With, +// ]> +// ]> + export type Extend = ( T extends [infer Super, infer Self, ...infer Rest] @@ -28,12 +36,3 @@ export type Extend = ( : never : {} ) - - -// export type ExtendableFn = ComposeLeft<[ -// ExtendFn, -// Match<[ -// Match.With, -// Match.With, -// ]> -// ]>