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 {
3232import type {
3333 AutoExternal ,
3434 BannerAndFooter ,
35+ DeepRequired ,
3536 Format ,
3637 LibConfig ,
3738 LibOnlyConfig ,
@@ -600,10 +601,6 @@ const composeFormatConfig = ({
600601 }
601602} ;
602603
603- type DeepRequired < T > = Required < {
604- [ K in keyof T ] : T [ K ] extends Required < T [ K ] > ? T [ K ] : DeepRequired < T [ K ] > ;
605- } > ;
606-
607604const composeShimsConfig = (
608605 format : Format ,
609606 shims ?: Shims ,
Original file line number Diff line number Diff line change @@ -6,3 +6,7 @@ export type PkgJson = {
66 devDependencies ?: Record < string , string > ;
77 optionalDependencies ?: Record < string , string > ;
88} ;
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