feat(core): allow plugin/preset config to contain false/null (#7124)

This commit is contained in:
Joshua Chen 2022-04-07 21:27:20 +08:00 committed by GitHub
parent 0963bff5e7
commit f9c0a5a6d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 31 additions and 9 deletions

View file

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