extends)function logLength<T extends { length: number }>(arg: T): T. Passing a type without a .length property triggers a compile-time error.Preview terms and definitions before starting your study session.
extends)function logLength<T extends { length: number }>(arg: T): T. Passing a type without a .length property triggers a compile-time error.Partial<T> Utility TypeT set to optional (?). Implemented under the hood using a mapped type: type Partial<T> = { [P in keyof T]?: T[P]; }.Required<T> vs. Readonly<T>Required<T> removes optional modifiers (-?) from all properties of T, making them mandatory. Readonly<T> prepends the readonly modifier to all properties, preventing reassignment after initialization.Pick<T, K> Utility TypeK from object type T (where K extends keyof T). Example: type UserSummary = Pick<User, 'id' | 'email'>;.Omit<T, K> Utility TypeT and dropping the specified keys K. Equivalent to Pick<T, Exclude<keyof T, K>>. Example: type UserWithoutPassword = Omit<User, 'password'>;.Record<K, T> Utility TypeK (which must extend keyof any, i.e., string | number | symbol) and whose property values are of type T. Example: Record<string, User> maps arbitrary string keys to User objects.Exclude<T, U> vs. Extract<T, U>Exclude<T, U> removes types from union T that are assignable to U. Extract<T, U> selects types from union T that are assignable to U. Both utilize distributive conditional types.ReturnType<T> & Parameters<T>ReturnType<T> extracts the return type of a function type T. Parameters<T> extracts a tuple type containing all parameter types of function type T. Both use conditional types and the infer keyword.Explore similar study materials created by the community
Master the core principles of neuroscience with this high-yield flashcard deck covering neuroanatomy, neuronal communication, action potentials, and functional pathways. Ideal for medical, biology, and cognitive science students.
Master essential USMLE Step 1 concepts covering core organ system physiology and foundational pathology. Designed for high-yield board review and rapid active recall.
Unlock HSK 1 success with this essential flashcard deck! Master foundational Chinese vocabulary, grammar, and practical phrases for confident daily communication and exam readiness.
Master Kubernetes fundamentals with this high-yield flashcard deck, covering essential concepts like Pods, Deployments, Services, and core architectural components. Accelerate your journey in cloud-native development and operations by understanding how to orchestrate and deploy containerized applications at scale.