Conceptual
Login

Mapped Types

{ [K in keyof T]: F<T[K]> } builds a new object type by iterating a union of keys, optionally adding or stripping ? and readonly modifiers (+/-) and renaming keys with 'as'. Homomorphic mapped types (mapping over keyof T) preserve modifiers and distribute over the original's structure.

This Concept is waiting for its first lesson!

{ [K in keyof T]: F<T[K]> } builds a new object type by iterating a union of keys, optionally adding or stripping ? and readonly modifiers (+/-) and renaming keys with 'as'. Homomorphic mapped types (mapping over keyof T) preserve modifiers and distribute over the original's structure.

Are you a teacher? Sign in to start contributing.

Sign In