mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-04 11:52:39 +02:00
feat(core): support TypeScript + ESM configuration (#9317)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com> Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
336a44f3ea
commit
45f1a669b5
126 changed files with 2054 additions and 914 deletions
1
packages/docusaurus-types/src/index.d.ts
vendored
1
packages/docusaurus-types/src/index.d.ts
vendored
|
@ -52,6 +52,7 @@ export {
|
|||
PluginVersionInformation,
|
||||
Preset,
|
||||
PresetConfig,
|
||||
PresetConfigDefined,
|
||||
PresetModule,
|
||||
OptionValidationContext,
|
||||
ThemeConfigValidationContext,
|
||||
|
|
8
packages/docusaurus-types/src/plugin.d.ts
vendored
8
packages/docusaurus-types/src/plugin.d.ts
vendored
|
@ -26,11 +26,9 @@ export type PluginConfig =
|
|||
| false
|
||||
| null;
|
||||
|
||||
export type PresetConfig =
|
||||
| string
|
||||
| [string, {[key: string]: unknown}]
|
||||
| false
|
||||
| null;
|
||||
export type PresetConfigDefined = string | [string, {[key: string]: unknown}];
|
||||
|
||||
export type PresetConfig = PresetConfigDefined | false | null;
|
||||
|
||||
/**
|
||||
* - `type: 'package'`, plugin is in a different package.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue