Post

I’ve never heard of twoslash but it looks amazing to create self-documenting code samples: twoslash.netlify.app

twoslash.netlify.appTwoslashMarkup for generating rich type information in your documentations ahead of time.
Artem Zakharchenko@kettanaito.com

In the new version of MSW docs, all code snippets will feature type definitions for all APIs thanks to Shiki's fantastic Twoslash. This will also allow us to drop redundant explanations as you can inspect the types yourself now.

1 repost12 likes