Skip to content

Commit 9618cf1

Browse files
scottdallamurabryanmacfarlane
authored andcommitted
remove Q from surface (#48)
1 parent 60d01ed commit 9618cf1

20 files changed

+7767
-6928
lines changed

api/BuildApi.ts

Lines changed: 790 additions & 790 deletions
Large diffs are not rendered by default.

api/CoreApi.ts

Lines changed: 317 additions & 317 deletions
Large diffs are not rendered by default.

api/FileContainerApiBase.ts

Lines changed: 81 additions & 81 deletions
Large diffs are not rendered by default.

api/GalleryApi.ts

Lines changed: 508 additions & 508 deletions
Large diffs are not rendered by default.

api/GitApi.ts

Lines changed: 1168 additions & 1168 deletions
Large diffs are not rendered by default.

api/ReleaseApi.ts

Lines changed: 713 additions & 666 deletions
Large diffs are not rendered by default.

api/TaskAgentApi.ts

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import TaskAgentInterfaces = require("./interfaces/TaskAgentInterfaces");
88
import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
99

1010
export interface ITaskAgentApi extends taskagentbasem.ITaskAgentApiBase {
11-
uploadTaskDefinition(customHeaders: VsoBaseInterfaces.IHeaders, contentStream: NodeJS.ReadableStream, taskId: string, overwrite: boolean) : Q.Promise<void>;
11+
uploadTaskDefinition(customHeaders: VsoBaseInterfaces.IHeaders, contentStream: NodeJS.ReadableStream, taskId: string, overwrite: boolean) : Promise<void>;
1212
}
1313

1414
export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITaskAgentApi {
@@ -28,9 +28,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
2828
*/
2929
public deleteTaskDefinition(
3030
taskId: string
31-
): Q.Promise<void> {
31+
): Promise<void> {
3232

33-
return this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
33+
let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
3434
.then((location: ifm.ApiResourceLocation) => {
3535
if (location) {
3636
// the resource exists at the url we were given. go!
@@ -49,6 +49,8 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
4949
}
5050
}
5151
});
52+
53+
return <Promise<void>>(<any>promise);
5254
}
5355

5456
/**
@@ -63,9 +65,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
6365
versionString: string,
6466
visibility: string[],
6567
scopeLocal: boolean
66-
): Q.Promise<NodeJS.ReadableStream> {
68+
): Promise<NodeJS.ReadableStream> {
6769

68-
return this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
70+
let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
6971
.then((location: ifm.ApiResourceLocation) => {
7072
if (location) {
7173
// the resource exists at the url we were given. go!
@@ -84,6 +86,8 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
8486
}
8587
}
8688
});
89+
90+
return <Promise<NodeJS.ReadableStream>>(<any>promise);
8791
}
8892

8993
/**
@@ -98,9 +102,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
98102
versionString: string,
99103
visibility: string[],
100104
scopeLocal: boolean
101-
): Q.Promise<TaskAgentInterfaces.TaskDefinition> {
105+
): Promise<TaskAgentInterfaces.TaskDefinition> {
102106

103-
return this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
107+
let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
104108
.then((location: ifm.ApiResourceLocation) => {
105109
if (location) {
106110
// the resource exists at the url we were given. go!
@@ -119,6 +123,8 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
119123
}
120124
}
121125
});
126+
127+
return <Promise<TaskAgentInterfaces.TaskDefinition>>(<any>promise);
122128
}
123129

124130
/**
@@ -131,9 +137,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
131137
taskId: string,
132138
visibility: string[],
133139
scopeLocal: boolean
134-
): Q.Promise<TaskAgentInterfaces.TaskDefinition[]> {
140+
): Promise<TaskAgentInterfaces.TaskDefinition[]> {
135141

136-
return this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
142+
let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
137143
.then((location: ifm.ApiResourceLocation) => {
138144
if (location) {
139145
// the resource exists at the url we were given. go!
@@ -152,6 +158,8 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
152158
}
153159
}
154160
});
161+
162+
return <Promise<TaskAgentInterfaces.TaskDefinition[]>>(<any>promise);
155163
}
156164

157165
/**
@@ -165,9 +173,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
165173
contentStream: NodeJS.ReadableStream,
166174
taskId: string,
167175
overwrite: boolean
168-
): Q.Promise<void> {
176+
): Promise<void> {
169177

170-
return this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
178+
let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
171179
.then((location: ifm.ApiResourceLocation) => {
172180
if (location) {
173181
// the resource exists at the url we were given. go!
@@ -186,6 +194,8 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
186194
}
187195
}
188196
});
197+
198+
return <Promise<void>>(<any>promise);
189199
}
190200

191201
/**

0 commit comments

Comments
 (0)