Merge pull request #267 from Microsoft/fixTSCompile

Fixed compile errors due to TypeScript 1.8.2
This commit is contained in:
Guillaume Jenkins 2016-02-24 16:54:20 -08:00
Родитель 8550564382 3e1727862c
Коммит 14c66d4b64
3 изменённых файлов: 1 добавлений и 9 удалений

Просмотреть файл

@ -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 {