1×
Become a member
to unlock all features
Autoplay

    Represent Non-Primitive Types with TypeScript’s object Type

    typescriptTypeScript
    ^2.0.0

    TypeScript 2.2 introduced the object, a type that represents any non-primitive type. It can be used to more accurately type methods such as Object.create. Don't confuse it with the Object type or {}, the empty object type, though!