Skip to content

Commit c3cf064

Browse files
authored
Improve theme.extend types (tailwindlabs#8419)
1 parent c8cca0c commit c3cf064

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

types/config.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ type ScreensConfig = string[] | KeyValuePair<string, string | Screen | Screen[]>
7676

7777
// Theme related config
7878
interface ThemeConfig {
79-
extend: Partial<Omit<ThemeConfig, 'extend'>>
80-
8179
/** Responsiveness */
8280
screens: ResolvableTo<ScreensConfig>
8381

@@ -317,7 +315,7 @@ interface OptionalConfig {
317315
future: Partial<FutureConfig>
318316
experimental: Partial<ExperimentalConfig>
319317
darkMode: Partial<DarkModeConfig>
320-
theme: Partial<ThemeConfig>
318+
theme: Partial<ThemeConfig & { extend: Partial<ThemeConfig> }>
321319
corePlugins: Partial<CorePluginsConfig>
322320
plugins: Partial<PluginsConfig>
323321
/** Custom */

0 commit comments

Comments
 (0)