microsoft / TypeScript-Handbook

Deprecated, please use the TypeScript-Website repo instead
https://github.com/microsoft/TypeScript-Website
Apache License 2.0
4.88k stars 1.13k forks source link

Fix Basic Types' table of contents and add object type usage note #1123

Closed ndresx closed 4 years ago

ndresx commented 4 years ago

This fixes the Basic Types' table of contents (randomly stumbled upon this while fixing the original issue).

Moreover, it adds a note to the Any section to avoid using Object in favor of object. I think it's fine to leave the example as is since you can obviously use it like this, but you shouldn't.

Fixes https://github.com/microsoft/TypeScript-Handbook/issues/1025, https://github.com/microsoft/TypeScript/issues/19908

msftclas commented 4 years ago

CLA assistant check
All CLA requirements met.

ebramanti commented 4 years ago

Good catch @ndresx! Just noticed this myself in the docs and was going to open a PR, just beat me to it 🙂

orta commented 4 years ago

Thanks folks - looks 👍 to me