20 cards · Public · Shuffle

TypeScript & Modern Frontend Architecture

Master advanced TypeScript mechanics, structural typing, utility types, and modern application state architectures for enterprise frontend engineering.

Cards in this deck

(20 cards)

Preview terms and definitions before starting your study session.

#1
Term
Indexed Access Types (T[K])
Definition
Indexed access types look up a specific property type on another type using key indexing. Example: type Age = Person["age"] extracts the exact type of the age property from Person.
#2
Term
Const Assertions (as const)
Definition
An assertion that instructs the compiler to infer the narrowest literal type for primitives, turn array literals into readonly tuples, and mark all object properties as readonly depth-wise.
#3
Term
TypeScript Top & Bottom Types: any, unknown, and never
Definition
any turns off all type-checking. unknown is the type-safe top type that requires type narrowing (via type guards) before performing operations. never is the bottom type representing values that can never occur, such as functions that always throw exceptions or unreachable code paths.
#4
Term
Structural Typing (Duck Typing)
Definition
TypeScript utilizes a structural type system. Type compatibility and equivalence are determined solely by the shape and members of a type, rather than its explicit name or class declaration hierarchy (which is nominal typing).
#5
Term
interface vs. type Alias
Definition
interface is primarily designed for defining object shapes and supports declaration merging (adding fields across multiple declarations). type aliases can represent primitives, unions, tuples, and intersections, but cannot be declaration-merged.
#6
Term
Union (|) vs. Intersection (&) Types
Definition
A Union (A | B) represents a value that can be either type A or type B, allowing access only to shared members unless narrowed. An Intersection (A & B) combines multiple types into one, requiring the value to satisfy all combined types simultaneously.
#7
Term
Generics and Generic Constraints (T extends U)
Definition
Generics abstract over types to build reusable components while retaining type safety. Generic constraints using T extends U restrict the allowed types passed to generic parameter T to those compatible with type U.
#8
Term
Utility Types: Partial<T> and Required<T>
Definition
Partial<T> constructs a type with all properties of T set to optional (?). Required<T> does the inverse, constructing a type where all properties of T are explicitly required.
Showing 8 of 20 cards in this deck.
Study All Now