Typescript: Documentation correction

Created on 8 Aug 2019  ·  6Comments  ·  Source: microsoft/TypeScript

Check out the screen, please:
http://joxi.ru/1A5voQxcDRvL1r
Maybe you wrong with an interface name.
Best regards, Andrey.

Docs

All 6 comments

There is no way I am clicking that link. Please include a screenshot inline with your post.

@RyanCavanaugh https://www.typescriptlang.org/docs/handbook/advanced-types.html#index-types

keyof Car is completely interchangeable with 'manufacturer' | 'model' | 'year'. The difference is that if you add another property to Car, say ownersAddress: string, then keyof Person will automatically update to be 'manufacturer' | 'model' | 'year' | 'ownersAddress'.

@MartinJohns thanks! 😅

Seems like joxi is a "free screen capture tool". Pretty sure all mainstream OS have those by default

PR'd a fix 👍

Was this page helpful?
0 / 5 - 0 ratings