mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
fix(*): make TypeScript realize that each plugin package has a default export (#7294)
This commit is contained in:
parent
b49ae67521
commit
a2c993bf9a
43 changed files with 208 additions and 187 deletions
|
@ -3,7 +3,7 @@
|
|||
"version": "2.0.0-beta.18",
|
||||
"description": "Classic preset for Docusaurus.",
|
||||
"main": "lib/index.js",
|
||||
"types": "src/preset-classic.d.ts",
|
||||
"types": "lib/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"watch": "tsc --watch"
|
||||
|
|
|
@ -11,7 +11,7 @@ import type {
|
|||
PluginConfig,
|
||||
PluginOptions,
|
||||
} from '@docusaurus/types';
|
||||
import type {Options, ThemeConfig} from '@docusaurus/preset-classic';
|
||||
import type {Options, ThemeConfig} from './options';
|
||||
|
||||
function makePluginConfig(
|
||||
source: string,
|
||||
|
@ -93,3 +93,5 @@ export default function preset(
|
|||
|
||||
return {themes, plugins};
|
||||
}
|
||||
|
||||
export type {Options, ThemeConfig};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue