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

后端 未结 9 2018
不思量自难忘°
不思量自难忘° 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:09

    In Visual Studio 2017 version 15.3 and later, the TypeScript version used is bound to individual projects.

    Reference - https://github.com/Microsoft/TypeScript/wiki/Updating-TypeScript-in-Visual-Studio-2017

提交回复
热议问题