From 37a5aa6f0ceb62daf575e74dccf30bb3c75db4d5 Mon Sep 17 00:00:00 2001 From: Brody McKee Date: Tue, 15 Oct 2024 17:23:38 +1100 Subject: [PATCH 1/3] Fix type issue --- types/config.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/types/config.d.ts b/types/config.d.ts index 80b58d07028a..a614afc1c75c 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 } )[] From 041300758cd83917c5d77cc4a01d2bb57d509879 Mon Sep 17 00:00:00 2001 From: mrmckeb Date: Mon, 25 Nov 2024 09:11:23 +1100 Subject: [PATCH 2/3] Add CHANGESET entry --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6c0fa7f4f84..a99b785061b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing yet! +- Ensure the TypeScript types for `PluginsConfig` allow `undefined` values ([#14668](https://github.com/tailwindlabs/tailwindcss/pull/14668)) ## [3.4.15] - 2024-11-14 From de4da49f52fdf619f8ea535c796699ac4934d8dc Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Thu, 28 Nov 2024 11:11:46 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a99b785061b8..e0958ba4c655 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + - Ensure the TypeScript types for `PluginsConfig` allow `undefined` values ([#14668](https://github.com/tailwindlabs/tailwindcss/pull/14668)) ## [3.4.15] - 2024-11-14