CLM-0001
TypeScript's goal 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
A static typechecker is a tool that runs before your code runs and ensures 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 to be a comprehensive guide to the language's features and behaviors.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 aims to give a deeper explanation of a single concept per section.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
The reference section has no 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 will 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
The Handbook directs readers to "The Basics" after the introductory pages.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 page is "Step one in learning TypeScript: The basic types".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 Basics page is published 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-0013
The motivating example of The Basics page is that the behavior of operations such as message.toLowerCase() or message() depends entirely on the value of message.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Basics.md 1 verified Re-check this claim
CLM-0014
Calling a string value as a function fails in JavaScript 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-0015
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-0016
Unlike most TypeScript features, enums are not a type-level addition.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
Enums are 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-0018
The page advises knowing enums exist.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
The page advises 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-0020
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-0021
BigInt can be created via the BigInt function.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Everyday%20Types.md 1 verified Re-check this claim
CLM-0022
BigInt can be created via the 100n literal syntax.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Everyday%20Types.md 1 verified Re-check this claim
CLM-0023
The symbol primitive creates 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-0024
Comparing two symbols created with the same name using === is flagged as something that can never happen.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Everyday%20Types.md 1 verified Re-check this claim
CLM-0025
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-0026
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-0027
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-0028
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-0029
A field's type will be an implicit any if its type annotation is not specified.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Classes.md 1 verified Re-check this claim
CLM-0030
Fields can have initializers that 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-0031
As with const, let, and var, the initializer of a field 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-0032
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-0033
Object types can be anonymous.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
Object types can be named via an interface.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0035
Object types can be named via 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-0036
Each property in an object type can specify its type.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0037
Each property in an object type can specify whether it is optional.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0038
Each property in an object type can specify 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-0039
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-0040
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-0041
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-0042
Generic functions let you avoid overloads entirely.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0043
A tuple type is an Array type that knows exactly how many elements it contains.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0044
A tuple type knows 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-0045
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-0046
Like ReadonlyArray, 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-0047
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-0048
Tuples can be destructured with JavaScript array destructuring.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0049
Optional and rest elements in tuples allow TypeScript to 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-0050
Tuple types have readonly variants.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Object%20Types.md 1 verified Re-check this claim
CLM-0051
Readonly variants of tuple types are 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-0052
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-0053
A file without any top-level import or export is treated as a script whose contents 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-0054
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-0055
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-0056
Consuming declarations from another module requires importing them.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 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-0058
Other module patterns are in the reference section.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0059
import fs = require("fs") is TypeScript syntax that gives a 1-to-1 match with CommonJS output.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0060
CommonJS is the format in which most modules on npm 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-0061
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-0062
In CommonJS, 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-0063
CommonJS and ES Modules differ in how they distinguish a default import from a module namespace object import.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 esModuleInterop compiler flag reduces the friction between CommonJS and 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-0065
Module resolution is the process of taking a string from an import or require statement and determining which 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-0066
The Modules page describes 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-0067
Classic is the default resolution strategy when the module compiler option 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-0068
Classic module resolution is kept 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-0069
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-0070
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-0071
target determines which JS features are downleveled and which are left intact.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0072
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-0073
TypeScript's namespaces pre-date the ES Modules standard.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Modules.md 1 verified Re-check this claim
CLM-0074
TypeScript's 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-0075
The Modules page 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-0076
Template literal types build on string literal types.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Type%20Manipulation/Template%20Literal%20Types.md 1 verified Re-check this claim
CLM-0077
Template literal types can expand into many strings via unions.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Type%20Manipulation/Template%20Literal%20Types.md 1 verified Re-check this claim
CLM-0078
Template literal types use the same syntax as JavaScript template literal strings, but in type positions.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Type%20Manipulation/Template%20Literal%20Types.md 1 verified Re-check this claim
CLM-0079
With concrete literal types, template literal types produce a new string literal type by concatenating the contents.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Type%20Manipulation/Template%20Literal%20Types.md 1 verified Re-check this claim
CLM-0080
When a union is used in an interpolated position in a template literal type, the result is the set of every string literal that each union member could represent.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Type%20Manipulation/Template%20Literal%20Types.md 1 verified Re-check this claim
CLM-0081
With multiple interpolated positions in a template literal type, the unions are cross multiplied.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Type%20Manipulation/Template%20Literal%20Types.md 1 verified Re-check this claim
CLM-0082
The Template Literal Types page generally recommends ahead-of-time generation for large string unions.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Type%20Manipulation/Template%20Literal%20Types.md 1 verified Re-check this claim
CLM-0083
The Template Literal Types page notes that template literal types are useful in smaller cases.https://github.com/microsoft/TypeScript-Website/blob/24166845f5de5562abd8618817377130ba46d3f0/packages/documentation/copy/en/handbook-v2/Type%20Manipulation/Template%20Literal%20Types.md 1 verified Re-check this claim