mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
feat(core): allow plugin/preset config to contain false/null (#7124)
This commit is contained in:
parent
0963bff5e7
commit
f9c0a5a6d5
7 changed files with 31 additions and 9 deletions
10
packages/docusaurus-types/src/index.d.ts
vendored
10
packages/docusaurus-types/src/index.d.ts
vendored
|
@ -27,9 +27,15 @@ export type PluginConfig =
|
|||
| string
|
||||
| [string, PluginOptions]
|
||||
| [PluginModule, PluginOptions]
|
||||
| PluginModule;
|
||||
| PluginModule
|
||||
| false
|
||||
| null;
|
||||
|
||||
export type PresetConfig = string | [string, {[key: string]: unknown}];
|
||||
export type PresetConfig =
|
||||
| string
|
||||
| [string, {[key: string]: unknown}]
|
||||
| false
|
||||
| null;
|
||||
|
||||
export type ThemeConfig = {
|
||||
[key: string]: unknown;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue