refactor(preset-classic): migrate preset-classic to TypeScript (#5579)

This commit is contained in:
Joshua Chen 2021-09-22 17:09:52 +08:00 committed by GitHub
parent 578470a24c
commit 2ef70cb806
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 93 additions and 57 deletions

View file

@ -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';