File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import {
32
32
import type {
33
33
AutoExternal ,
34
34
BannerAndFooter ,
35
+ DeepRequired ,
35
36
Format ,
36
37
LibConfig ,
37
38
LibOnlyConfig ,
@@ -600,10 +601,6 @@ const composeFormatConfig = ({
600
601
}
601
602
} ;
602
603
603
- type DeepRequired < T > = Required < {
604
- [ K in keyof T ] : T [ K ] extends Required < T [ K ] > ? T [ K ] : DeepRequired < T [ K ] > ;
605
- } > ;
606
-
607
604
const composeShimsConfig = (
608
605
format : Format ,
609
606
shims ?: Shims ,
Original file line number Diff line number Diff line change @@ -6,3 +6,7 @@ export type PkgJson = {
6
6
devDependencies ?: Record < string , string > ;
7
7
optionalDependencies ?: Record < string , string > ;
8
8
} ;
9
+
10
+ export type DeepRequired < T > = Required < {
11
+ [ K in keyof T ] : T [ K ] extends Required < T [ K ] > ? T [ K ] : DeepRequired < T [ K ] > ;
12
+ } > ;
You can’t perform that action at this time.
0 commit comments