diff --git a/node/CHANGELOG.md b/node/CHANGELOG.md index 722d4bee3..b53208324 100644 --- a/node/CHANGELOG.md +++ b/node/CHANGELOG.md @@ -35,4 +35,8 @@ Backported from ver.`3.4.0`: ## 4.2.0 -- Added unhandledRejection event - [#912](https://github.com/microsoft/azure-pipelines-task-lib/pull/912) \ No newline at end of file +- Added unhandledRejection event - [#912](https://github.com/microsoft/azure-pipelines-task-lib/pull/912) + +## 4.3.0 + +- Described types for `argIf` - [#920](https://github.com/microsoft/azure-pipelines-task-lib/pull/920) diff --git a/node/package-lock.json b/node/package-lock.json index 247aa110b..1e91f0715 100644 --- a/node/package-lock.json +++ b/node/package-lock.json @@ -1,6 +1,6 @@ { "name": "azure-pipelines-task-lib", - "version": "4.2.0", + "version": "4.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/node/package.json b/node/package.json index 8f0cb19e8..d5ea2f748 100644 --- a/node/package.json +++ b/node/package.json @@ -1,6 +1,6 @@ { "name": "azure-pipelines-task-lib", - "version": "4.2.0", + "version": "4.3.0", "description": "Azure Pipelines Task SDK", "main": "./task.js", "typings": "./task.d.ts", diff --git a/node/toolrunner.ts b/node/toolrunner.ts index 8e0607c7b..7fbfb0635 100644 --- a/node/toolrunner.ts +++ b/node/toolrunner.ts @@ -853,7 +853,7 @@ export class ToolRunner extends events.EventEmitter { * @param val string cmdline or array of strings * @returns ToolRunner */ - public argIf(condition: any, val: any) { + public argIf(condition: unknown, val: string | string[]): ToolRunner { if (condition) { this.arg(val); }