@@ -195,12 +195,12 @@ export class GraphRequest {
195195 }
196196
197197
198- delete ( callback ?:GraphRequestCallback ) :Promise < any > | void {
198+ delete ( callback ?:GraphRequestCallback ) :Promise < any > {
199199 let url = this . buildFullUrl ( ) ;
200200 return this . sendRequestAndRouteResponse ( request . del ( url ) , callback )
201201 }
202202
203- patch ( content :any , callback ?:GraphRequestCallback ) :Promise < any > | void {
203+ patch ( content :any , callback ?:GraphRequestCallback ) :Promise < any > {
204204 let url = this . buildFullUrl ( ) ;
205205
206206 return this . sendRequestAndRouteResponse (
@@ -211,7 +211,7 @@ export class GraphRequest {
211211 ) ;
212212 }
213213
214- post ( content :any , callback ?:GraphRequestCallback ) :Promise < any > | void {
214+ post ( content :any , callback ?:GraphRequestCallback ) :Promise < any > {
215215 let url = this . buildFullUrl ( ) ;
216216 return this . sendRequestAndRouteResponse (
217217 request
@@ -221,7 +221,7 @@ export class GraphRequest {
221221 ) ;
222222 }
223223
224- put ( content :any , callback ?:GraphRequestCallback ) :Promise < any > | void {
224+ put ( content :any , callback ?:GraphRequestCallback ) :Promise < any > {
225225 let url = this . buildFullUrl ( ) ;
226226 return this . sendRequestAndRouteResponse (
227227 request
@@ -234,20 +234,20 @@ export class GraphRequest {
234234
235235 // request aliases
236236 // alias for post
237- create ( content :any , callback ?:GraphRequestCallback ) :Promise < any > | void {
237+ create ( content :any , callback ?:GraphRequestCallback ) :Promise < any > {
238238 return this . post ( content , callback ) ;
239239 }
240240
241241 // alias for patch
242- update ( content :any , callback ?:GraphRequestCallback ) :Promise < any > | void {
242+ update ( content :any , callback ?:GraphRequestCallback ) :Promise < any > {
243243 return this . patch ( content , callback ) ;
244244 }
245245
246- del ( callback ?:GraphRequestCallback ) :Promise < any > | void {
246+ del ( callback ?:GraphRequestCallback ) :Promise < any > {
247247 return this . delete ( callback ) ;
248248 }
249249
250- get ( callback ?:GraphRequestCallback ) :Promise < any > | void {
250+ get ( callback ?:GraphRequestCallback ) :Promise < any > {
251251 let url = this . buildFullUrl ( ) ;
252252 return this . sendRequestAndRouteResponse (
253253 request
@@ -288,7 +288,7 @@ export class GraphRequest {
288288 * Help method that's called from the final actions( .get(), .post(), etc.) that after making the request either invokes
289289 * routeResponseToCallback() or routeResponseToPromise()
290290 */
291- private sendRequestAndRouteResponse ( requestBuilder :request . SuperAgentRequest , callback ?:GraphRequestCallback ) :Promise < any > | void {
291+ private sendRequestAndRouteResponse ( requestBuilder :request . SuperAgentRequest , callback ?:GraphRequestCallback ) :Promise < any > {
292292 // return a promise when Promises are supported and no callback was provided
293293 if ( callback == null && typeof Promise !== "undefined" ) {
294294 return this . routeResponseToPromise ( requestBuilder ) ;
0 commit comments