mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 08:19:07 +02:00
refactor(preset-classic): migrate preset-classic to TypeScript (#5579)
This commit is contained in:
parent
578470a24c
commit
2ef70cb806
8 changed files with 93 additions and 57 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type {RemarkAndRehypePluginOptions} from '@docusaurus/mdx-loader';
|
||||
|
||||
export interface PluginOptions extends RemarkAndRehypePluginOptions {
|
||||
export type PluginOptions = RemarkAndRehypePluginOptions & {
|
||||
id?: string;
|
||||
path: string;
|
||||
routeBasePath: string;
|
||||
|
@ -15,7 +15,7 @@ export interface PluginOptions extends RemarkAndRehypePluginOptions {
|
|||
exclude: string[];
|
||||
mdxPageComponent: string;
|
||||
admonitions: Record<string, unknown>;
|
||||
}
|
||||
};
|
||||
|
||||
export type JSXPageMetadata = {
|
||||
type: 'jsx';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue