我在2015版本中使用typescript構建了一個Apache cordova項目RC一切都很好,但是今天我升級到2015 RTM並且出現錯誤以指向ECMAScript 5和以上,因爲我使用getter。在Visual Studio 2015 RTM中更改打字稿設置(apache cordova項目)
get isUserLoggedIn(): boolean {
return !!(utils.localStorageHandler.get(storageNames.accessToken) && utils.localStorageHandler.get(storageNames.accessToken) != '')
}
問題是我無法找到,我可以在Visual Studio改變ECMA目標的地方2015年RTM
請幫我這個問題
那對我有效thnx –
@PranayDutta不用謝 – Klors
https://github.com/Microsoft/TypeScript/wiki/tsconfig.json,更詳細的配置 –