CLM-0001
The goal of TypeScript is to be a static typechecker for JavaScript programs.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/The%20Handbook.md 1 verified Re-check this claim
CLM-0002
TypeScript is a tool that runs before your code runs and ensures that the program's types are correct.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/The%20Handbook.md 1 verified Re-check this claim
CLM-0003
The handbook is split into two sections: The Handbook and Reference Files.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/The%20Handbook.md 1 verified Re-check this claim
CLM-0004
The Handbook is intended as a comprehensive document that explains TypeScript to everyday programmers.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/The%20Handbook.md 1 verified Re-check this claim
CLM-0005
The Handbook is not a complete language specification.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/The%20Handbook.md 1 verified Re-check this claim
CLM-0006
The reference section provides a richer understanding of how a particular part of TypeScript works.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/The%20Handbook.md 1 verified Re-check this claim
CLM-0007
Each section in the reference section gives a deeper explanation of a single concept and does not aim for continuity.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/The%20Handbook.md 1 verified Re-check this claim
CLM-0008
The Handbook does not fully introduce core JavaScript basics such as functions, classes, and closures.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/The%20Handbook.md 1 verified Re-check this claim
CLM-0009
The Handbook does not cover how TypeScript interacts with other tools, except where necessary.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/The%20Handbook.md 1 verified Re-check this claim
CLM-0010
Configuring TypeScript with webpack, rollup, or npm is out of scope for the Handbook.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/The%20Handbook.md 1 verified Re-check this claim
CLM-0011
"The Basics" is the handbook's first page, at `/docs/handbook/2/basic-types.html`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Basics.md 1 verified Re-check this claim
CLM-0012
The behavior of an operation on a value depends on what the value is.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Basics.md 1 verified Re-check this claim
CLM-0013
Calling a string `message` as a function `message()` fails with `TypeError: message is not a function`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Basics.md 1 verified Re-check this claim
CLM-0014
Enums are a feature TypeScript adds to JavaScript.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Everyday%20Types.md 1 verified Re-check this claim
CLM-0015
Unlike most TypeScript features, enums are not a type-level addition but something added to the language and runtime.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Everyday%20Types.md 1 verified Re-check this claim
CLM-0016
The handbook says enums are worth knowing about.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Everyday%20Types.md 1 verified Re-check this claim
CLM-0017
The handbook suggests holding off on using enums unless you are sure.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Everyday%20Types.md 1 verified Re-check this claim
CLM-0018
From ES2020 onwards, JavaScript has a primitive for very large integers, `BigInt`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Everyday%20Types.md 1 verified Re-check this claim
CLM-0019
JavaScript has a primitive for creating a globally unique reference via `Symbol()`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Everyday%20Types.md 1 verified Re-check this claim
CLM-0020
In TypeScript, objects are represented through object types.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0021
Object types can be anonymous, or named with an interface or a type alias.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0022
Each property in an object type can specify its type, whether it is optional, and whether it can be written to.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0023
A property is marked optional by adding a question mark (`?`) to the end of its name.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0024
A generic type such as `Box<Type>` declares a type parameter.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0025
When TypeScript sees `Box<string>`, it replaces every `Type` in `Box<Type>` with `string`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0026
Generics let you avoid overloads, for example by using generic functions.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0027
A tuple type is an `Array` type that knows exactly how many elements it contains and which types appear at specific positions.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0028
Like `ReadonlyArray`, a tuple type has no representation at runtime.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0029
A tuple type is significant to TypeScript.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0030
Indexing past the number of elements in a tuple produces an error.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0031
Tuple types can have optional and rest elements.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0032
Having optional and rest elements lets TypeScript correspond tuples with parameter lists.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0033
Tuple types have `readonly` variants, specified by putting a `readonly` modifier in front of them.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0034
TypeScript offers full support for the `class` keyword introduced in ES2015.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Classes.md 1 verified Re-check this claim
CLM-0035
TypeScript adds type annotations and other syntax to express relationships between classes and other types.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Classes.md 1 verified Re-check this claim
CLM-0036
A field declaration creates a public writeable property on a class.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Classes.md 1 verified Re-check this claim
CLM-0037
A field's type annotation is optional.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Classes.md 1 verified Re-check this claim
CLM-0038
If no type annotation is specified on a field, the type is an implicit `any`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Classes.md 1 verified Re-check this claim
CLM-0039
Fields can have initializers, which run automatically when the class is instantiated.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Classes.md 1 verified Re-check this claim
CLM-0040
The field initializer is used to infer the property's type.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Classes.md 1 verified Re-check this claim
CLM-0041
The `strictPropertyInitialization` setting controls whether class fields need to be initialized in the constructor.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Classes.md 1 verified Re-check this claim
CLM-0042
In TypeScript, as in ECMAScript 2015, any file containing a top-level `import` or `export` is considered a module.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0043
A file without top-level import or export declarations is treated as a script.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0044
The contents of a file without top-level import or export declarations are available in the global scope.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0045
Modules execute in their own scope.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0046
Declarations in a module are not visible outside it unless explicitly exported.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0047
ES Modules were added to the JavaScript spec in 2015.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0048
ES Modules had broad support in most web browsers and JavaScript runtimes by 2020.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0049
The handbook covers both ES Modules and the CommonJS `module.exports =` syntax.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0050
In CommonJS, identifiers are exported by setting the `exports` property on a global called `module`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0051
In CommonJS, exported identifiers are imported with `require`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0052
CommonJS is the format in which most npm modules are delivered.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0053
The `esModuleInterop` compiler flag reduces friction between CommonJS and ES Modules over default imports versus module namespace object imports.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0054
Module resolution turns the string in an `import` or `require` statement into the file it refers to.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0055
TypeScript includes two resolution strategies, Classic and Node.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0056
Classic is the default resolution strategy when `module` is not `commonjs`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0057
The Classic resolution strategy exists for backwards compatibility.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0058
The Node strategy replicates how Node.js works in CommonJS mode, with additional checks for `.ts` and `.d.ts`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0059
Two options affect emitted JavaScript: `target` and `module`.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0060
`target` determines which JS features are downleveled.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0061
`module` determines what code is used for modules to interact with each other.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0062
Namespaces are a TypeScript module format that pre-dates ES Modules.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0063
Namespaces are not deprecated.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0064
The handbook recommends ES Modules to align with JavaScript's direction.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0065
Most namespace features exist in ES Modules.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim