mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 12:52:31 +02:00
refactor(types): move non-core, non-public types out of the types package (#7293)
This commit is contained in:
parent
c7a5af7c4d
commit
b49ae67521
25 changed files with 397 additions and 404 deletions
9
packages/docusaurus-mdx-loader/src/deps.d.ts
vendored
9
packages/docusaurus-mdx-loader/src/deps.d.ts
vendored
|
@ -7,10 +7,13 @@
|
|||
|
||||
// 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 {MDXPlugin} from '@docusaurus/mdx-loader';
|
||||
import type {Processor, Plugin} from 'unified';
|
||||
|
||||
export type Options = {
|
||||
type MDXPlugin =
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
[Plugin<any[]>, any] | Plugin<any[]>;
|
||||
|
||||
type Options = {
|
||||
filepath?: string;
|
||||
skipExport?: boolean;
|
||||
wrapExport?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue