1×
Become a member
to unlock all features
Autoplay

    Query Properties with keyof and Lookup Types in TypeScript

    typescriptTypeScript
    ^2.0.0

    The keyof operator produces a union type of all known, public property names of a given type. You can use it together with lookup types (aka indexed access types) to statically model dynamic property access in the type system.