diff --git a/CHANGELOG.md b/CHANGELOG.md index c6c0fa7f4f84..e0958ba4c655 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing yet! +### Fixed + +- Ensure the TypeScript types for `PluginsConfig` allow `undefined` values ([#14668](https://github.com/tailwindlabs/tailwindcss/pull/14668)) ## [3.4.15] - 2024-11-14 diff --git a/types/config.d.ts b/types/config.d.ts index 2c95a6dec67f..64fbf63c4878 100644 --- a/types/config.d.ts +++ b/types/config.d.ts @@ -344,9 +344,12 @@ export interface PluginAPI { export type PluginCreator = (api: PluginAPI) => void export type PluginsConfig = ( | PluginCreator - | { handler: PluginCreator; config?: Partial } + | { handler: PluginCreator; config?: Partial | undefined } | { - (options: any): { handler: PluginCreator; config?: Partial } + (options: any): { + handler: PluginCreator; + config?: Partial | undefined; + }; __isOptionsFunction: true } )[]