File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11// Some properties can be optionally capitalized. We normalize them to lowercase
2- export const normalizeConfigCase = function ( { Build, build = Build , ...config } ) {
2+ export const normalizeConfigCase = function ( {
3+ Build,
4+ build = Build ,
5+ ...config
6+ } : {
7+ Build : Record < string , unknown >
8+ build : Record < string , unknown >
9+ [ key : string ] : unknown
10+ } ) : Record < string , unknown > {
311 const buildA = normalizeBuildCase ( build )
412 return { ...config , build : buildA }
513}
614
7- const normalizeBuildCase = function ( {
15+ const normalizeBuildCase = ( {
816 Base,
917 base = Base ,
1018 Command,
@@ -22,7 +30,7 @@ const normalizeBuildCase = function ({
2230 Publish,
2331 publish = Publish ,
2432 ...build
25- } = { } ) {
33+ } : Record < string , unknown > = { } ) : Record < string , unknown > => {
2634 return {
2735 ...build ,
2836 base,
You can’t perform that action at this time.
0 commit comments