String Literal Types String literal types allow you to specify the exact value a string must have. In practice string literal types combine
Weeding out Errors Like we mentioned, it’s not unexpected to get error messages after conversion. The important thing is to actually go one
Add TypeScript code Right click on src and click New Item. Then choose TypeScript File and name
Modular Libraries Some libraries only work in a module loader environment. For example, because express only works in Node.js and
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
Set up the build Right click on the project and click New Item. Then choose TypeScript Configuration File
Call the script from a view In the Solution Explorer, open Views
Variable capturing quirks Take a quick second to guess what the output of the following snippet is:
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:
Understanding private When a member is marked private, it cannot be accessed from outside of its containing class
Page 1 of 29