Skip to content

Commit 748d0f5

Browse files
authored
Described types for argIf (#920)
* Improve types for argIf command * Bump package version * Update changelog
1 parent 6bf0ef6 commit 748d0f5

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

node/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,8 @@ Backported from ver.`3.4.0`:
3535

3636
## 4.2.0
3737

38-
- Added unhandledRejection event - [#912](https://github.com/microsoft/azure-pipelines-task-lib/pull/912)
38+
- Added unhandledRejection event - [#912](https://github.com/microsoft/azure-pipelines-task-lib/pull/912)
39+
40+
## 4.3.0
41+
42+
- Described types for `argIf` - [#920](https://github.com/microsoft/azure-pipelines-task-lib/pull/920)

node/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-pipelines-task-lib",
3-
"version": "4.2.0",
3+
"version": "4.3.0",
44
"description": "Azure Pipelines Task SDK",
55
"main": "./task.js",
66
"typings": "./task.d.ts",

node/toolrunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ export class ToolRunner extends events.EventEmitter {
853853
* @param val string cmdline or array of strings
854854
* @returns ToolRunner
855855
*/
856-
public argIf(condition: any, val: any) {
856+
public argIf(condition: unknown, val: string | string[]): ToolRunner {
857857
if (condition) {
858858
this.arg(val);
859859
}

0 commit comments

Comments
 (0)