https://github.com/som-sm/shareable-twoslash-comments
Shareable Twoslash Comments is a TypeScript Playground plugin that injects twoslash (// ^?) type hints as literal comments in your code, making them easy to copy and share.
https://github.com/som-sm/shareable-twoslash-comments
playground-plugin typescript-playground-plugin
Last synced: 4 months ago
JSON representation
Shareable Twoslash Comments is a TypeScript Playground plugin that injects twoslash (// ^?) type hints as literal comments in your code, making them easy to copy and share.
- Host: GitHub
- URL: https://github.com/som-sm/shareable-twoslash-comments
- Owner: som-sm
- License: mit
- Created: 2025-01-03T16:15:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-02T11:29:14.000Z (over 1 year ago)
- Last Synced: 2025-07-27T22:54:21.636Z (11 months ago)
- Topics: playground-plugin, typescript-playground-plugin
- Language: TypeScript
- Homepage: https://www.typescriptlang.org/play?install-plugin=shareable-twoslash-comments
- Size: 72.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## Shareable Twoslash Comments
A TypeScript Playground plugin that injects twoslash (// ^?) type hints as literal comments in your code, making them easy to copy and share.
https://github.com/user-attachments/assets/5e42a08e-7570-4d04-9434-6a93cd898e7f
## Running this plugin
- [Click this link](https://www.typescriptlang.org/play?install-plugin=shareable-twoslash-comments) to install
or
- Open up the TypeScript Playground
- Go the "Plugins" in the sidebar
- Look for "Plugins from npm"
- Add "shareable-twoslash-comments"
- Reload the browser
Then it will show up as a tab in the sidebar.
## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md) for the full details, however, TLDR:
```sh
git clone ...
yarn install
yarn start
```
Then tick the box for starting plugin development inside the TypeScript Playground.