@hephaestus/core
Advanced tools
Comparing version 1.0.0-alpha.13 to 1.0.0-alpha.14
@@ -97,6 +97,11 @@ import { ConditionalKeys, Promisable, UnionToIntersection } from 'type-fest'; | ||
required?: boolean; | ||
type: number; | ||
} | ||
declare type ConvertOptionsToArgs<T extends readonly BaseOption[]> = UnionToIntersection<{ | ||
declare type ConvertOptionsToArgs<T extends readonly BaseOption[], D> = UnionToIntersection<{ | ||
[P in keyof T]: { | ||
[_ in T[P]['name']]: T[P]['required'] extends true ? T[P] : T[P] | undefined; | ||
[_ in T[P]['name']]: T[P]['required'] extends true ? { | ||
type: T[P]['type']; | ||
} & D : { | ||
type: T[P]['type']; | ||
} & D | undefined; | ||
}; | ||
@@ -103,0 +108,0 @@ }[number]>; |
{ | ||
"name": "@hephaestus/core", | ||
"version": "1.0.0-alpha.13", | ||
"version": "1.0.0-alpha.14", | ||
"description": "> TODO: description", | ||
@@ -40,3 +40,3 @@ "author": "Alex Taxiera <alex.taxiera@gmail.com>", | ||
}, | ||
"gitHead": "23a2b18ba0978dd9b2af99ff9bdbb0d236cae662" | ||
"gitHead": "322fc7420bd732d23183cb91e5a07495338a4ec6" | ||
} |
22371
626