keyof Operator
keyof T produces the union of T's property keys as literal types (string | number | symbol members), turning an object type's shape into a value-less enumerable set. It is the bridge that lets generics quantify over properties, as in <K extends keyof T>.
This Concept is waiting for its first lesson!
keyof T produces the union of T's property keys as literal types (string | number | symbol members), turning an object type's shape into a value-less enumerable set. It is the bridge that lets generics quantify over properties, as in <K extends keyof T>.
Are you a teacher? Sign in to start contributing.
Sign In