This commit is contained in:
@@ -11,6 +11,14 @@ import { CommonKeys } from "."
|
||||
// }
|
||||
// export type ExtendFn = Tuples.Reduce<ExtendReducerFn, {}>
|
||||
|
||||
// export type ExtendableFn = ComposeLeft<[
|
||||
// ExtendFn,
|
||||
// Match<[
|
||||
// Match.With<never, false>,
|
||||
// Match.With<any, true>,
|
||||
// ]>
|
||||
// ]>
|
||||
|
||||
|
||||
export type Extend<T extends readonly object[]> = (
|
||||
T extends [infer Super, infer Self, ...infer Rest]
|
||||
@@ -28,12 +36,3 @@ export type Extend<T extends readonly object[]> = (
|
||||
: never
|
||||
: {}
|
||||
)
|
||||
|
||||
|
||||
// export type ExtendableFn = ComposeLeft<[
|
||||
// ExtendFn,
|
||||
// Match<[
|
||||
// Match.With<never, false>,
|
||||
// Match.With<any, true>,
|
||||
// ]>
|
||||
// ]>
|
||||
|
||||
Reference in New Issue
Block a user