twoslashes/twoslash

Markup for generating rich type information in your documentations ahead of time.

938

stars

469

commits

TypeScript

primary language

Jun 22, 2026

updated

twoslash.netlify.app/
shiki
twoslash
typescript

README

Twoslash Logo

Twoslash

npm version npm downloads bundle JSDocs License

📚 Documentation | ⚙️ Migration Guide

A markup format for TypeScript code, ideal for creating self-contained code samples which let the TypeScript compiler do the extra leg-work. Inspired by the fourslash test system.

This project is the successor of @typescript/twoslash.

License

MIT License © Orta Therox, Anthony Fu, Microsoft Corporation

Contributors

(top 30 of 43)

antfu

222 commits

orta

176 commits

andrewbranch

15 commits

d-fischer

8 commits

twoslashes/twoslash

Markup for generating rich type information in your documentations ahead of time.

938

stars

469

commits

TypeScript

primary language

Jun 22, 2026

updated

twoslash.netlify.app/
shiki
twoslash
typescript

README

Twoslash Logo

Twoslash

npm version npm downloads bundle JSDocs License

📚 Documentation | ⚙️ Migration Guide

A markup format for TypeScript code, ideal for creating self-contained code samples which let the TypeScript compiler do the extra leg-work. Inspired by the fourslash test system.

This project is the successor of @typescript/twoslash.

License

MIT License © Orta Therox, Anthony Fu, Microsoft Corporation

Contributors

(top 30 of 43)

antfu

222 commits

orta

176 commits

andrewbranch

15 commits

d-fischer

8 commits

Languages

TypeScript

95.6%

HTML

3.4%

JavaScript

1.0%