danvk / effective-typescript

Effective TypeScript 2nd Edition: 83 Specific Ways to Improve Your TypeScript
https://effectivetypescript.com
Other
1.53k stars 226 forks source link

Update code samples and home page for second edition #34

Closed danvk closed 4 months ago

danvk commented 4 months ago

It's here!

This PR updates the repo home page and code sample files for the second edition. I've changed the organization of the repo to hopefully be more useful. Each item gets its own Markdown file containing its "Things to Remember", plus a listing of code samples and playground links. These include the TS Compiler options used in the sample as well as all "prepended" code. The errors and types in the source should exactly match what you see on the playground. This may not work for some sample that include external files, but 99% of them should be good to go.

CO0Ki3 commented 4 months ago

@danvk Did you willing to leave an archive of the first edition?

danvk commented 4 months ago

@CO0Ki3 Yes! Take a look at the 1st-edition branch: https://github.com/danvk/effective-typescript/tree/1st-edition

CO0Ki3 commented 3 months ago

@danvk Branch has been checked! Readme doesn't show anything about the first edition, so I left a reply about the separation of the repository to avoid confusion, but it's already been updated 'o' thx:)