1×
Become a member
to unlock all features
Autoplay

    Infer Types for Rest and Spread Properties in TypeScript

    typescriptTypeScript
    ^2.0.0

    TypeScript supports rest and spread properties for objects, which are slated for standardization in ECMAScript 2018. It automatically infers rest and spread types so that you can use object spread and rest elements in a statically typed manner without having to manually add type annotations.