Table of Contents
Learning TypeScript by Josh Goldberg Glossary
Return to TypeScript glossary - JavaScript glossary, TypeScript, TypeScript DevOps - JavaScript DevOps, TypeScript topics - JavaScript topics, TypeScript bibliography - JavaScript bibliography - Web development bibliography
- Ambient Context - TypeScript Ambient Context - “An area in code where you can declare types but cannot declare implementations. Generally used in reference to .d.ts declaration files.” (LrnTS 2022). See Also Declaration File
- Any - TypeScript Any - “any: a type that is allowed to be used anywhere and can be given anything. any can act as a top type, in that any type can be provided to a location of type any. Most of the time you probably want to use unknown for more accurate type safety.” (LrnTS 2022). See Also Unknown, Top Type
- Assignable, Assignability - TypeScript Assignable, TypeScript Assignability - “Whether one type is allowed to be used in place of another.” (LrnTS 2022)
- Billion Dollar Mistake]] - TypeScript Billion Dollar Mistake]] - “The catchy industry term for many type systems allowing values such as null to be used in places that require a different type. Coined by Tony Hoare in reference to the amount of damage it seems to have caused.” (LrnTS 2022). See Also Strict Null Checking
- Bottom Type - TypeScript Bottom Type - “A type that has no possible values — the empty set of types. No type is assignable to the bottom type. TypeScript provides the never keyword to indicate a bottom type.” (LrnTS 2022). See Also Never.
- Call Signature - TypeScript Call Signature - ”Type system description of how a function may be called. Includes a list of parameters and a return type.“ (LrnTS 2022)
- Cast, Type Cast - TypeScript Cast]], TypeScript Type Cast - “An assertion to TypeScript that a value is of a different type than what TypeScript would otherwise expect.” (LrnTS 2022)
- Class - TypeScript Class - ”JavaScript syntax sugar around functions that assign to a prototype. TypeScript allows working with JavaScript classes.“ (LrnTS 2022)
- Compile - TypeScript Compile - “Turn source code into another format. TypeScript includes a compiler that turns .ts/.tsx TypeScript source code into .js files.” (LrnTS 2022). See Also Transpile
- Conditional Type - TypeScript Conditional Type - “A type that resolves to one of two possible types, based on an existing type.” (LrnTS 2022)
- Const Assertion - TypeScript Const Assertion - “as const type assertion shorthand that tells TypeScript to use the most literal, readonly possible form of a value’s type.” (LrnTS 2022)
- Constituent, Constituent Type - TypeScript Constituent, TypeScript Constituent Type - “One of the types in an intersection or union type.” (LrnTS 2022)
- Declaration File - TypeScript Declaration File - “A file with the .d.ts extension. Declaration files create an ambient context, meaning they can only declare types and cannot declare implementations.” (LrnTS 2022). See Also Ambient Context
- Dynamically Typed, Dynamic Typing]] - TypeScript Dynamically Typed, TypeScript Dynamic Typing]] - “A classification of programming language that does not natively include a type checker. Examples of dynamically typed programming languages include JavaScript and Ruby.” (LrnTS 2022)
- DefinitelyTyped - TypeScript DefinitelyTyped - “The massive repository of community-authored type definitions for packages (DT for short). It contains thousands of .d.ts definitions along with automation around reviewing change proposals and publishing updates. Those definitions are published as packages under the @types/ organization on npm, such as @types/react.” (LrnTS 2022)
- Discriminant - TypeScript Discriminant]] - “The member of a discriminated union that has the same name but different value in each constituent type. In type Color = { result: string, status: 0 } | { error: Error, status: 1 }, the status member acts as the discriminant.” (LrnTS 2022)
- Discriminated Union, Discriminated Type Union - TypeScript Discriminated Union, TypeScript Discriminated Type Union - “A union of types where a “discriminant” member exists with the same name but different value in each constituent type. Checking the value of the discriminant acts as a form of type narrowing.” (LrnTS 2022)
- Distributivity - TypeScript Distributivity]] - “A property of TypeScript’s conditional types when given union template types: meaning their resultant type will be a union of applying that conditional type to each of the constituents (types in the union type). In other words, ConditionalType<T | U> is the same as Conditional<T> | Conditional<U>.” (LrnTS 2022)
- Duck [[Typed - TypeScript Duck Typed - “A common phrase for how JavaScript’s type system behaves. It comes from the phrase “if it looks like a duck and quacks like a duck, it’s probably a duck”. It means that JavaScript allows any value to be passed anywhere; if an object is asked for a member that doesn’t exist, the result will be undefined.” (LrnTS 2022). See Also Structurally Typed
- Emit, Emitted [[Code - TypeScript Emit]], TypeScript Emitted Code - “The output from a compiler, such as .js files often produced by running tsc. The TypeScript compiler’s JavaScript and/or definition file emits can be controlled by its compiler options.” (LrnTS 2022)
- Enum - TypeScript Enum]] - “A set of literal values stored in an object with a friendly name for each value. Enums are a rare example of TypeScript-specific syntax extension to vanilla JavaScript.” (LrnTS 2022)
- Evolving Any - TypeScript Evolving Any]] - “A special case of implicit any for variables who don’t have a type annotation or initial value. Their type will be evolved to whatever they are used with.” (LrnTS 2022). See Also Implicit Any
- Function Overload, Over[[loaded Function - TypeScript Function Overload, TypeScript Overloaded Function - “A way to describe a function able to be called with drastically different sets of parameters.” (LrnTS 2022)
- IDE, Integrated [[Development Environment - TypeScript IDE, TypeScript Integrated Development Environment - ”Program that provides developer tooling on top of a text editor for source code. IDEs generally come with debuggers, syntax highlighting, and plugins that surface complaints from programming languages such as type errors. This book uses VS Code for its IDE examples but others include Atom, Emacs, Vim, Visual Studio, and WebStorm.“ (LrnTS 2022)
- Implementation Signature - TypeScript Implementation Signature - “The final signature declared on an overloaded function, used for its implementation’s parameters.” (LrnTS 2022). See Also Function Overload
- Implicit Any - TypeScript Implicit Any]] - “When TypeScript cannot immediately deduce the type of a class property, function parameter, or variable, it implicitly assumes the type to be any. Implicit any types for class properties and function parameters may be configured to be type errors using the noImplicitAny compiler option.” (LrnTS 2022)
- Interface Merging - TypeScript Interface Merging - “A property of interfaces that when multiple with the same name are declared in the same scope, they combine into one interface instead of causing a type error about conflicting names. This is most commonly used by definition authors to augment global interfaces such as Window.” (LrnTS 2022)
- Inter[[section Type - TypeScript Intersection Type - “A type that uses the & operator to indicate it has all the properties of both its constituents.” (LrnTS 2022)
- Module Resolution - TypeScript Module Resolution - “The set of steps used to determine what file a module import resolves to. The TypeScript compiler can have this specified by its moduleResolution compiler option.” (LrnTS 2022)
- Namespace]] - TypeScript Namespace]] - “An old construct in TypeScript that creates a globally available object with “exported” contents available to call as members of that object. Namespaces are a rare example of TypeScript-specific syntax extension to vanilla JavaScript. These days they’re mostly used in .d.ts declaration files.” (LrnTS 2022)
- never - TypeScript never]] - “The TypeScript type representing the bottom type: a type that can have no possible values.” (LrnTS 2022). See Also Bottom Type.
- Non-[[Null Assertion - TypeScript Non-Null Assertion - “A shorthand ! that asserts a type is not null or undefined.” (LrnTS 2022)
- Optional - TypeScript Optional - “A function parameter, class property, or member of an interface or object type that doesn’t need to be provided. Indicated by placing a ? after its name, or for function parameters and class properties, alternately by providing a default value with a =.” (LrnTS 2022)
- Parameter Property - TypeScript Parameter Property - “A TypeScript syntax extension for declaring a property assigned to a member property of the same type at the beginning of a class constructor.” (LrnTS 2022)
- Pascal Case - TypeScript Pascal Case - “A naming convention where the first letter of each compound word in a name is capitalized, like PascalCase. The convention for names of many TypeScript type system constructs, including generics, interfaces, and type aliases.” (LrnTS 2022)
- Project References]] - TypeScript Project References]] - “A feature of TypeScript configuration files where they can reference other configuration files’ projects as dependencies. This allows you to use TypeScript as a build coordinator to enforce a project dependency tree.” (LrnTS 2022)
- Return Type - TypeScript Return Type - “The type that must be returned by a function. If multiple return statements exist in the function with different types, it will be a union of all those possible types. If the function cannot possibly return, it will be never.” (LrnTS 2022)
- Script - TypeScript Script - “Any source code file that is not a module.” (LrnTS 2022). See Also Module.
- Strict Mode - TypeScript Strict Mode - “A collection of compiler options that increase the amount of strictness and number of checks the TypeScript type checker performs. This can be enabled for tsc with the –strict flag and in TSConfiguration files with the ”strict”: true compilerOption.“ (LrnTS 2022)
- Strict Null Checking - TypeScript Strict Null Checking - “A strict mode for TypeScript where null and undefined are no longer allowed to be provided to types that don’t explicitly include them.” (LrnTS 2022). See Also Billion Dollar Mistake]]
- Structurally Typed - TypeScript Structurally Typed - “A type system where any value that happens to satisfy a type is allowed to be used as an instance of that type.” (LrnTS 2022). See Also Duck [[Typed
- Target - TypeScript Target - “The TypeScript compiler option to specify how far back in syntax support JavaScript code needs to be transpiled, such as es5 or es2017. Although target defaults to es3 for backwards compatibility reasons, it’s advisable use as new JavaScript syntax as possible per your target platform(s), as supporting newer JavaScript features in older environments necessitates creating more JavaScript code.” (LrnTS 2022)
- Transpile - TypeScript Transpile - “A term for compilation that turns source code from one human-readable programming language into another. TypeScript includes a compiler that turns .ts/.tsx TypeScript source code into .js files, which is sometimes referred to as transpilation.” (LrnTS 2022). See Also Compile
- Type Annotation - TypeScript Type Annotation - “An annotation after a name used to indicate its type. Consists of `: ` and the name of a type.” (LrnTS 2022)
- Type system - TypeScript Type system - “The set of rules for how a programming language understands what types the constructs in a program may have.” (LrnTS 2022)
- Union - TypeScript Union - “A type describing a value that can be two or more possible types. Represented by the | pipe between each possible type.” (LrnTS 2022)
- Visibility - TypeScript Visibility]] - “Specifying whether a class member is visible to code outside the class. Indicated before the member’s declaration with the public, protected, and private keywords. Visibility and its keywords predate JavaScript’s true # member privacy and exist only in the TypeScript type system.” (LrnTS 2022). See Also Privacy.
- Void - [[TypeScript Void - “A type indicating the lack of returned value from a function, represented by the void keyword in TypeScript. Functions are thought of as returning void if they have no return statements that return a value.” (LrnTS 2022)
Fair Use Sources
TypeScript: TypeScript Glossary, TypeScript Best Practices, Web Development Best Practices, JavaScript Best Practices, TypeScript Fundamentals, TypeScript Inventor - TypeScript Language Designer: Anders Hejlsberg of Microsoft on October 1, 2012; TypeScript Keywords, TypeScript Built-In Data Types, TypeScript Data Structures - TypeScript Algorithms, TypeScript Syntax, TypeScript on Linux, TypeScript on macOS, TypeScript on Windows, TypeScript on Android, TypeScript on iOS, TypeScript Installation, TypeScript Containerization (TypeScript with Docker, TypeScript with Podman, TypeScript and Kubernetes), TypeScript OOP - TypeScript Design Patterns, Clean TypeScript - TypeScript Style Guide, TypeScript Best Practices - TypeScript BDD, Web Browser, Web Development, HTML-CSS, TypeScript Frameworks (Angular), JavaScript Libraries (React.js with TypeScript, Vue.js with TypeScript, jQuery with TypeScript), TypeScript on the Server (TypeScript with Node.js, TypeScript with Deno, TypeScript with Express.js), TypeScript Compiler (tsc, tsconfig.json), TypeScript Transpiler (Transpile TypeScript into JavaScript), Babel and TypeScript, TypeScript Package Management, NPM and TypeScript, NVM and TypeScript, Yarn Package Manager and TypeScript, TypeScript IDEs (Visual Studio Code, Visual Studio, JetBrains WebStorm), TypeScript Development Tools, TypeScript Linter, TypeScript Debugging (Chrome DevTools, JavaScript Source Maps), TypeScript Testing (TypeScript TDD, Selenium, Jest, Mocha.js, Jasmine, Tape Testing (tap-producing test harness for Node.js and browsers), Supertest, React Testing Library, Enzyme.js React Testing, Angular TestBed), TypeScript DevOps - TypeScript SRE, TypeScript Data Science - TypeScript DataOps, TypeScript Machine Learning, TypeScript Deep Learning, Functional TypeScript, TypeScript Concurrency (WebAssembly - WASM) - TypeScript Async (TypeScript Await, TypeScript Promises, TypeScript Workers - Web Workers, Service Workers, Browser Main Thread), TypeScript Concurrency, TypeScript History, TypeScript Bibliography, Manning TypeScript Series, TypeScript Glossary, TypeScript T, TypeScript Courses, TypeScript Standard Library, TypeScript Libraries, TypeScript Frameworks (Angular), TypeScript Research, JavaScript, TypeScript GitHub, Written in TypeScript, TypeScript Popularity, TypeScript Awesome, TypeScript Versions. (navbar_typescript - see also navbar_javascript, navbar_javascript_libraries, navbar_typescript_libraries, navbar_typescript_versions, navbar_typescript_standard_library, navbar_typescript_libraries, navbar_typescript_reserved_words, navbar_typescript_functional, navbar_typescript_concurrency, navbar_typescript_async, navbar_javascript_standard_library, navbar_react.js, navbar_angular, navbar_vue, navbar_javascript_standard_library, navbar_web_development)
© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers
SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.