Learning how TypeScript 3.0, a typed superset of JavaScript, improves tuples type and introduces a new 'unknown' top type!
TypeScript 3.0 is out! It comes with enhancements for the type system, compiler, and language service. This release is shipping with the following:
- Project references let TypeScript projects depend on other TypeScript projects by allowing
tsconfig.jsonfiles to reference othertsconfig.jsonfiles. - Support for
defaultPropsin JSX. - Tuples in rest parameters and spread expressions with optional elements.
- New
unknowntop type! It's the type-safe counterpart ofany.