зеркало из https://github.com/microsoft/TACO.git
Merge pull request #267 from Microsoft/fixTSCompile
Fixed compile errors due to TypeScript 1.8.2
This commit is contained in:
Коммит
14c66d4b64
|
@ -22,7 +22,7 @@
|
|||
"remap-istanbul": "^0.3.1",
|
||||
"replace": "latest",
|
||||
"run-sequence": "latest",
|
||||
"typescript": "latest"
|
||||
"typescript": "^1.8.2"
|
||||
},
|
||||
"scripts" : {
|
||||
"postinstall" : "node tools/tacoUtil.js",
|
||||
|
|
|
@ -38,10 +38,6 @@ class RequestRedirector implements TacoRemoteLib.IRequestRedirector {
|
|||
.catch(function (err: any): IRemoteLib {
|
||||
err.code = 500;
|
||||
throw err;
|
||||
/* tslint:disable no-unreachable */
|
||||
// Removing next line causes TS2355
|
||||
return null;
|
||||
/* tslint:enable no-unreachable */
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,10 +42,6 @@ module TacoTestsUtils {
|
|||
|
||||
throw new MethodNotImplementedException(caller, methodName, "The cordova method " + methodName +
|
||||
" was called during a test. You need to provide a custom implementation");
|
||||
/* tslint:disable no-unreachable */
|
||||
// Removing next line causes TS2355
|
||||
return <T>null;
|
||||
/* tslint:enable no-unreachable */
|
||||
}
|
||||
|
||||
export class MockCordova510 implements Cordova.ICordova510 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче