Classes
  • References/JavaScript/TypeScript/Declaration Files

Classes Documentation You can create a greeter by instantiating the Greeter

2025-01-10 15:47:30
this and arrow functions
  • References/JavaScript/TypeScript/Functions

this and arrow functions In JavaScript, this is a variable that’s set when a function is called. This makes it a

2025-01-10 15:47:30
Use Union Types
  • References/JavaScript/TypeScript/Declaration Files

Use Union Types Don’t write overloads that differ by type in only one argument position:

2025-01-10 15:47:30
Install our dependencies
  • References/JavaScript/TypeScript/Tutorials

Install our dependencies Now we can use npm install to install packages. First install TypeScript and gulp globally. (You might

2025-01-10 15:47:30
Readonly properties
  • References/JavaScript/TypeScript/Interfaces

Readonly properties Some properties should only be modifiable when an object is first created. You can specify this by putting readonly

2025-01-10 15:47:30
Integrating with Build Tools
  • References/JavaScript/TypeScript/Tutorials

Integrating with Build Tools You might have some more build steps in your pipeline. Perhaps you concatenate something to each of your files

2025-01-10 15:47:30
Use Optional Parameters
  • References/JavaScript/TypeScript/Declaration Files

Use Optional Parameters Don’t write several overloads that differ only in trailing parameters:

2025-01-10 15:47:30
Static Properties
  • References/JavaScript/TypeScript/Classes

Static Properties Up to this point, we’ve only talked about the instance members of the class, those that show up on the object when

2025-01-10 15:47:30
Optional Parameters in Callbacks
  • References/JavaScript/TypeScript/Declaration Files

Optional Parameters in Callbacks Don’t use optional parameters in callbacks unless you really mean it:

2025-01-10 15:47:30
Re-declarations and Shadowing
  • References/JavaScript/TypeScript/Variable Declarations

Re-declarations and Shadowing With var declarations, we mentioned that it didn’t matter how many times you declared your variables;

2025-01-10 15:47:30