basarat / typescript-book

:books: The definitive guide to TypeScript and possibly the best TypeScript book :book:. Free and Open Source 🌹
https://basarat.gitbook.io/typescript/
Other
20.77k stars 2.54k forks source link

fix sample code of index signature #566

Closed numb86 closed 4 years ago

numb86 commented 4 years ago

Currently, [key: string]: number is not reflected on the screen. Adding a trailing semicolon may eliminate this bug. Unfortunately, this problem does not occur in the local environment, so it is difficult to verify. In any case, I think it is better to add a semicolon.

current screen

current

basarat commented 4 years ago

Thanks. Will see how it goes :rose:

numb86 commented 4 years ago

Thanks merge. There was no change in the display 😢