File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export function overrideTask(
61
61
export function globalParameter < T extends ParameterType > ( options : {
62
62
name : string ;
63
63
description : string ;
64
- parameterType : ParameterType ;
64
+ parameterType ?: T ;
65
65
defaultValue : ParameterTypeToValueType < T > ;
66
66
} ) : GlobalParameter {
67
67
return buildGlobalParameterDefinition ( options ) ;
Original file line number Diff line number Diff line change @@ -51,12 +51,15 @@ export function buildGlobalParameterMap(
51
51
return globalParametersIndex ;
52
52
}
53
53
54
- export function buildGlobalParameterDefinition <
55
- T extends ParameterType ,
56
- > ( options : {
54
+ export function buildGlobalParameterDefinition < T extends ParameterType > ( {
55
+ name,
56
+ description,
57
+ parameterType,
58
+ defaultValue,
59
+ } : {
57
60
name : string ;
58
61
description : string ;
59
- parameterType : ParameterType ;
62
+ parameterType ?: T ;
60
63
defaultValue : ParameterTypeToValueType < T > ;
61
64
} ) : GlobalParameter {
62
65
// TODO: Validate name casing
You can’t perform that action at this time.
0 commit comments