From 949bcb3548e734fb15de6bad3f41cfb01526787b Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Tue, 22 Mar 2022 11:53:40 +0100 Subject: [PATCH] fix types nesting (#7914) `Partial` is only 1 level deep. We don't want it to be recursively deep, that's for the plugin itself to decide. But the parts under `theme` should all be optional. --- types/config.d.ts | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/types/config.d.ts b/types/config.d.ts index 9b706bf99..97c4dfd9c 100644 --- a/types/config.d.ts +++ b/types/config.d.ts @@ -304,19 +304,20 @@ interface RequiredConfig { } interface OptionalConfig { - important: ImportantConfig - prefix: PrefixConfig - separator: SeparatorConfig - safelist: SafelistConfig - presets: PresetsConfig - future: FutureConfig - experimental: ExperimentalConfig - darkMode: DarkModeConfig - theme: ThemeConfig - corePlugins: CorePluginsConfig - plugins: PluginsConfig + important: Partial + prefix: Partial + separator: Partial + safelist: Partial + presets: Partial + future: Partial + experimental: Partial + darkMode: Partial + theme: Partial + corePlugins: Partial + plugins: Partial /** Custom */ [key: string]: any } export type Config = RequiredConfig & Partial +