Skip to content

Commit 5ebf55f

Browse files
authored
Fix return types for input functions in documentation (#826)
1 parent 9448530 commit 5ebf55f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

node/docs/azure-pipelines-task-lib.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ If required is true and the value is not set, it will throw.
119119

120120
@returns string
121121
```javascript
122-
getInput(name:string, required?:boolean):string
122+
getInput(name:string, required?:boolean):string | undefined
123123
```
124124

125125
Param | Type | Description
@@ -155,7 +155,7 @@ If check is true and the path does not exist, it will throw.
155155

156156
@returns string
157157
```javascript
158-
getPathInput(name:string, required?:boolean, check?:boolean):string
158+
getPathInput(name:string, required?:boolean, check?:boolean):string | undefined
159159
```
160160

161161
Param | Type | Description
@@ -211,7 +211,7 @@ Gets a variable value that is defined on the build/release definition or set at
211211

212212
@returns string
213213
```javascript
214-
getVariable(name:string):string
214+
getVariable(name:string):string | undefined
215215
```
216216

217217
Param | Type | Description
@@ -275,7 +275,7 @@ Requires a 2.115.0 agent or higher.
275275

276276
@returns string
277277
```javascript
278-
getTaskVariable(name:string):string
278+
getTaskVariable(name:string):string | undefined
279279
```
280280

281281
Param | Type | Description

0 commit comments

Comments
 (0)