mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 10:52:35 +02:00
fix: fix a lot of declaration semantic errors (#7194)
This commit is contained in:
parent
b154318c28
commit
7f06857e46
8 changed files with 62 additions and 61 deletions
8
packages/docusaurus-mdx-loader/src/deps.d.ts
vendored
8
packages/docusaurus-mdx-loader/src/deps.d.ts
vendored
|
@ -8,14 +8,14 @@
|
|||
// TODO Types provided by MDX 2.0 https://github.com/mdx-js/mdx/blob/main/packages/mdx/types/index.d.ts
|
||||
declare module '@mdx-js/mdx' {
|
||||
import type {Processor} from 'unified';
|
||||
import type {RemarkOrRehypePlugin} from '@docusaurus/mdx-loader';
|
||||
import type {MDXPlugin} from '@docusaurus/mdx-loader';
|
||||
|
||||
export type Options = {
|
||||
filepath?: string;
|
||||
skipExport?: boolean;
|
||||
wrapExport?: string;
|
||||
remarkPlugins?: RemarkOrRehypePlugin[];
|
||||
rehypePlugins?: RemarkOrRehypePlugin[];
|
||||
remarkPlugins?: MDXPlugin[];
|
||||
rehypePlugins?: MDXPlugin[];
|
||||
};
|
||||
|
||||
export function sync(content: string, options?: Options): string;
|
||||
|
@ -23,6 +23,6 @@ declare module '@mdx-js/mdx' {
|
|||
export function createCompiler(options?: Options): Processor;
|
||||
export default function mdx(
|
||||
content: string,
|
||||
options?: mdx.Options,
|
||||
options?: Options,
|
||||
): Promise<string>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue