diff --git a/packages/twoslash/src/renderer-rich.ts b/packages/twoslash/src/renderer-rich.ts index a326edec7..7ac89dda0 100644 --- a/packages/twoslash/src/renderer-rich.ts +++ b/packages/twoslash/src/renderer-rich.ts @@ -240,6 +240,7 @@ export function rendererRich(options: RendererRichOptions = {}): TwoslashRendere content, { ...this.options, + meta: {}, transformers: [], lang: (this.options.lang === 'tsx' || this.options.lang === 'jsx') ? 'tsx' diff --git a/packages/twoslash/test/out/rich/rich.html b/packages/twoslash/test/out/rich/rich.html index a1fd4b429..7043029ab 100644 --- a/packages/twoslash/test/out/rich/rich.html +++ b/packages/twoslash/test/out/rich/rich.html @@ -24,7 +24,7 @@ background-color: var(--shiki-light-bg, inherit); } -
interface Todo {
+
interface Todo {
   /** The title of the todo item */
   Todo.title: string
The title of the todo item
title
: string;
} diff --git a/packages/twoslash/test/rich.test.ts b/packages/twoslash/test/rich.test.ts index 00a79065a..6ea61a172 100644 --- a/packages/twoslash/test/rich.test.ts +++ b/packages/twoslash/test/rich.test.ts @@ -68,6 +68,9 @@ Number.parseInt(todo.title, 10); light: 'vitesse-light', }, defaultColor: false, + meta: { + title: 'test', + }, transformers: [ transformerTwoslash({ renderer: rendererRich(),