Generic Type Aliases
type Box<T> = { value: T } parameterizes a type alias or interface; unlike generic functions, instantiation happens when the type is referenced, and all type arguments must be resolvable there. Generic aliases are the unit of reuse for type-level programming, including recursive aliases.
This Concept is waiting for its first lesson!
type Box<T> = { value: T } parameterizes a type alias or interface; unlike generic functions, instantiation happens when the type is referenced, and all type arguments must be resolvable there. Generic aliases are the unit of reuse for type-level programming, including recursive aliases.
Are you a teacher? Sign in to start contributing.
Sign In