Dependencies on Global Libraries
  • References/JavaScript/TypeScript/Declaration Files

Dependencies on Global Libraries If your library depends on a global library, use a /// <reference types="..." /> directive:

2025-01-10 15:47:30
Disallowed Merges
  • References/JavaScript/TypeScript/Declaration Merging

Disallowed Merges Not all merges are allowed in TypeScript. Currently, classes can not merge with other classes or with variables. For information

2025-01-10 15:47:30
<reference path="...
  • References/JavaScript/TypeScript/Triple-Slash Directives

/// <reference path="..." /> The /// <reference path="..." /> directive is the most common of this group

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

Dependencies All dependencies are managed by npm. Make sure all the declaration packages you depend on are marked appropriately in the

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
Deep Dive
  • References/JavaScript/TypeScript/Declaration Files

Deep Dive For seasoned authors interested in the underlying mechanics of how declaration files work, the

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
global.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
search
  • References/JavaScript/TypeScript/Symbols

Symbol.search A regular expression method that returns the index within a string that matches the regular expression. Called by

2025-01-10 15:47:30
Polymorphic this types
  • References/JavaScript/TypeScript/Advanced Types

Polymorphic this types A polymorphic this type represents a type that is the subtype of the containing class

2025-01-10 15:47:30