String Literal Types
  • References/JavaScript/TypeScript/Advanced Types

String Literal Types String literal types allow you to specify the exact value a string must have. In practice string literal types combine

2025-01-10 15:47:30
Weeding out Errors
  • References/JavaScript/TypeScript/Tutorials

Weeding out Errors Like we mentioned, it’s not unexpected to get error messages after conversion. The important thing is to actually go one

2025-01-10 15:47:30
Add TypeScript code
  • References/JavaScript/TypeScript/Tutorials

Add TypeScript code Right click on src and click New Item. Then choose TypeScript File and name

2025-01-10 15:47:30
Modular Libraries
  • References/JavaScript/TypeScript/Declaration Files

Modular Libraries Some libraries only work in a module loader environment. For example, because express only works in Node.js and

2025-01-10 15:47:30
Lay out the project
  • References/JavaScript/TypeScript/Tutorials

Lay out the project Let’s start out with a new directory. We’ll name it proj for now, but you can change it to whatever you want

2025-01-10 15:47:30
Set up the build
  • References/JavaScript/TypeScript/Tutorials

Set up the build Right click on the project and click New Item. Then choose TypeScript Configuration File

2025-01-10 15:47:30
Call the script from a view
  • References/JavaScript/TypeScript/Tutorials

Call the script from a view In the Solution Explorer, open Views

2025-01-10 15:47:30
Variable capturing quirks
  • References/JavaScript/TypeScript/Variable Declarations

Variable capturing quirks Take a quick second to guess what the output of the following snippet is:

2025-01-10 15:47:30
Add Angular to the gulp build
  • References/JavaScript/TypeScript/Tutorials

Add Angular to the gulp build Finally, we need to make sure that the Angular files are copied as part of the build. We need to add:

2025-01-10 15:47:30
Understanding private
  • References/JavaScript/TypeScript/Classes

Understanding private When a member is marked private, it cannot be accessed from outside of its containing class

2025-01-10 15:47:30