Object destructuring
  • References/JavaScript/TypeScript/Variable Declarations

Object destructuring You can also destructure objects: let o = {

2025-01-10 15:47:30
Public by default
  • References/JavaScript/TypeScript/Classes

Public by default In our examples, we’ve been able to freely access the members that we declared throughout our programs. If you’re familiar

2025-01-10 15:47:30
Additional module resolution flags
  • References/JavaScript/TypeScript/Module Resolution

Additional module resolution flags A project source layout sometimes does not match that of the output. Usually a set of build steps result

2025-01-10 15:47:30
Module Augmentation
  • References/JavaScript/TypeScript/Declaration Merging

Module Augmentation Although JavaScript modules do not support merging, you can patch existing objects by importing and then updating them.

2025-01-10 15:47:30
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
Factories
  • References/JavaScript/TypeScript/Decorators

Decorator Factories If we want to customize how a decorator is applied to a declaration, we can write a decorator factory. A Decorator Factory

2025-01-10 15:47:30
module-function.d.ts
  • References/JavaScript/TypeScript/Declaration Files

// Type definitions for [~THE LIBRARY NAME~] [~OPTIONAL VERSION NUMBER~] // Project: [~THE PROJECT NAME~] // Definitions by: [~YOUR

2025-01-10 15:47:30
Publish to npm
  • References/JavaScript/TypeScript/Declaration Files

Publish to npm The Publishing section explains how to publish

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

Null- and undefined-aware types TypeScript has two special types, Null and Undefined, that have the values null and undefined

2025-01-10 15:47:30
Using Namespaces
  • References/JavaScript/TypeScript/Namespaces & Modules

Using Namespaces Namespaces are simply named JavaScript objects in the global namespace. This makes namespaces a very simple construct to use

2025-01-10 15:47:30