From f864886113f73f4d474f5c5a357576a2f4b57edb Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Tue, 23 Jul 2024 13:21:53 +0200 Subject: [PATCH] Fix types, lints in example Closes GH-2518 Reviewed-by: Titus Wormer --- docs/docs/getting-started.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/getting-started.mdx b/docs/docs/getting-started.mdx index 3d5d1eceb..9aecc61d4 100644 --- a/docs/docs/getting-started.mdx +++ b/docs/docs/getting-started.mdx @@ -815,10 +815,10 @@ MDX files can be imported in [Bun][] by using ``` ```js twoslash path="bun-mdx.ts" - import {plugin} from 'bun' import mdx from '@mdx-js/esbuild' + import {type BunPlugin, plugin} from 'bun' - plugin(mdx()) + await plugin(mdx() as unknown as BunPlugin) ```