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, -// ]> -// ]>