Currently, I am using:
Visual Studio 2015
.NET Framework 4.5.2
I have decided to refactor some of my client-side code from JavaScript to TypeScript. Here's how I started the process:
- Added a .ts file to my web project
- Let Visual Studio set up itself for compiling TypeScript automatically
- Installed the jquery.Typescript.DefinitelyTyped Nu-Get package
v3.1.2
- Copied my existing TypeScript code into the new file
Everything seems to be working fine except for one of my type alias declarations. I created a simple example of the error at the beginning of my file to highlight the issue.
https://i.sstatic.net/2Skbe.png
While Visual Studio accepts a string literal type alias
, it is having trouble with the numeric literal type alias
.
According to Visual Studio, the current version of TypeScript in use is 1.8.36.0
.