TypeScript's string enums - “Type … is not assignable to type …”

后端 未结 9 2021
不思量自难忘°
不思量自难忘° 2020-12-10 23:45

I have recently upgraded the version of TypeScript from 2.3.4 to 2.4.0 hoping to use the string enums. To my dismay, however, I have been greeted with the error messages:

9条回答
  •  时光说笑
    2020-12-11 00:12

    If you are using Visual studio 2017 Community version. you will not find TypeScript intellisense in Tools/Options. You should edit the project file .jsproj. TypeScriptToolsVersion

    and update TypeScriptToolsVersion to 2.6.2 or latest version.

提交回复
热议问题