Become a member
to unlock all features

    Infer Types for Rest and Spread Properties in TypeScript


    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.