Update Promise definition (#30268)

* Update definition of Promise in winjs.base.d.ts.

* Update to new Promise declaration

* Fix remaining errors.
This commit is contained in:
Ron Buckton
2017-08-18 00:02:57 -07:00
committed by Matt Bierner
parent aebaece673
commit 066a2bb141
34 changed files with 159 additions and 230 deletions

View File

@@ -85,7 +85,7 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape {
if (process) {
return <DebugSessionUUID>process.getId();
}
return TPromise.wrapError(new Error('cannot create debug session'));
return TPromise.wrapError<DebugSessionUUID>(new Error('cannot create debug session'));
}, err => {
return TPromise.wrapError(err && err.message ? err.message : 'cannot start debug session');
});