You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Type-check components in Markdown with TypeScript 7.1 #548
TypeScript 7.1 added content mappers, so tsc and the editor can check files that aren't TypeScript. I wrote one for Comark. You declare your components' props and slots on comark's types, and a mistake in a .md file becomes a type error on its line.
content/mistakes.md(6,9): error TS2322: Type '"warn"' is not assignable to type '"danger" | "info" | "warning"'.
content/mistakes.md(19,3): error TS2339: Property 'callout' does not exist on type 'ComarkComponents'.
Activity