From 844ea8abc8edf58c727b781bfc55c902b76c9714 Mon Sep 17 00:00:00 2001 From: CottonCandyZ Date: Wed, 17 Jan 2024 04:31:58 +0800 Subject: [PATCH] fix: type error in options parameter of mdxOptions (#219) --- src/types.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types.d.ts b/src/types.d.ts index 2eadfaf..a764331 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -6,7 +6,7 @@ import type {Plugin, BuildOptions, Loader} from 'esbuild' import type {ModuleInfo} from '@fal-works/esbuild-plugin-global-externals' -import type {ProcessorOptions} from '@mdx-js/esbuild/lib' +import type {Options} from '@mdx-js/esbuild/lib' import type {GrayMatterOption, Input, GrayMatterFile} from 'gray-matter' import type {MDXComponents} from 'mdx/types' import type {VFile,VFileOptions} from 'vfile' @@ -88,9 +88,9 @@ type BundleMDXOptions = { * ``` */ mdxOptions?: ( - options: ProcessorOptions, + options: Options, frontmatter: Frontmatter, - ) => ProcessorOptions + ) => Options /** * This allows you to modify the built-in esbuild configuration. This can be * especially helpful for specifying the compilation target.