twoslash
Write and fix type-checked code examples in RSPress docs sites that use rspress-plugin-api-extractor. Use when adding or editing a code fence in a docs page, when a with-api block reports Twoslash/TypeScript errors, when choosing notation (^?, @errors, @noErrors, ---cut---), or when copy-button output includes unwanted lines. Do NOT use for deciding whether a snippet deserves with-api at all (editorial call - see doc-writer) or for TypeScript questions outside documentation code blocks.
Pinned to revision f3ac0940b75a, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/twoslash/SKILL.md
- skills/twoslash/references/generated-examples.md
- skills/twoslash/references/notation.md
- skills/twoslash/references/recipes.md
Every link opens the file at its source, pinned to the revision this page describes.