Adopt twoslash for docs #298
AndreyYolkin
started this conversation in
Ideas
Replies: 2 comments 9 replies
-
Love it. Does twoslash get loaded after first paint? |
Beta Was this translation helpful? Give feedback.
6 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As one of the aims of radashi is better Typescript support, we can highlight it better with twoslash integration, available by brand-new community plugin https://github.com/MatthiesenXYZ/EC-Plugins/tree/main/packages/twoslash, which is a twoslash wrapper for Expressive Code, used in Astro.
I've tried to adopt some examples and how it may look like:
_.assign
_.castArray
_.first (we can discuss the proper naming)
The best part is that types are picked from code automatically and we don't need to specify any additional data (only mocks, like in _.all examples)
Beta Was this translation helpful? Give feedback.
All reactions