Skip to content

Commit

Permalink
fix: type error in options parameter of mdxOptions (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
CottonCandyZ authored Jan 16, 2024
1 parent 92d09f7 commit 844ea8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -88,9 +88,9 @@ type BundleMDXOptions<Frontmatter> = {
* ```
*/
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.
Expand Down

0 comments on commit 844ea8a

Please sign in to comment.