Private and protected members in classes
  • References/JavaScript/TypeScript/Type Compatibility

Private and protected members in classes Private and protected members in a class affect their compatibility. When an instance of a class is

2025-01-10 15:47:30
Value-based elements
  • References/JavaScript/TypeScript/JSX

Value-based elements Value based elements are simply looked up by identifiers that are in scope.

2025-01-10 15:47:30
Hybrid Types
  • References/JavaScript/TypeScript/Interfaces

Hybrid Types As we mentioned earlier, interfaces can describe the rich types present in real world JavaScript. Because of JavaScript’s dynamic

2025-01-10 15:47:30
Type Guards and Differentiating Types
  • References/JavaScript/TypeScript/Advanced Types

Type Guards and Differentiating Types Union types are useful for modeling situations when values can overlap in the types they can take on.

2025-01-10 15:47:30
Definition File Theory: A Deep Dive
  • References/JavaScript/TypeScript/Declaration Files

Definition File Theory: A Deep Dive Structuring modules to give the exact API shape you want can be tricky. For example, we might want a module

2025-01-10 15:47:30
Re-export to extend
  • References/JavaScript/TypeScript/Modules

Re-export to extend Often you will need to extend functionality on a module. A common JS pattern is to augment the original object with extensions

2025-01-10 15:47:30
Functions with overloads
  • References/JavaScript/TypeScript/Type Compatibility

Functions with overloads When a function has overloads, each overload in the source type must be matched by a compatible signature on the target

2025-01-10 15:47:30
Accessor Decorators
  • References/JavaScript/TypeScript/Decorators

Accessor Decorators An Accessor Decorator is declared just before an accessor declaration. The accessor decorator is applied to the

2025-01-10 15:47:30
isConcatSpreadable
  • References/JavaScript/TypeScript/Symbols

Symbol.isConcatSpreadable A Boolean value indicating that an object should be flatten to its array elements by Array.prototype

2025-01-10 15:47:30
TypeScript 1.7
  • References/JavaScript/TypeScript/What's New

async/await support in ES6 targets (Node v4+) TypeScript now supports asynchronous functions for engines that have

2025-01-10 15:47:30