From 60c06dc293acd3d2d91fd5105b7bd5550684225a Mon Sep 17 00:00:00 2001 From: Joey Jan Date: Wed, 29 Mar 2023 16:54:57 -0400 Subject: [PATCH] Update the types for the `safelist` config (#10901) * Revert prepare of v3.3 * Revert "Revert prepare of v3.3" This reverts commit 14d5a0a7c6d457a9b73fa1a9aca6ed41c46b27ad. * update SafelistConfig type I think this type was meant to be like this? * format types * update changelog --------- Co-authored-by: Robin Malfait --- CHANGELOG.md | 1 + types/config.d.ts | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fc716553..e73dc309a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Try resolving `config.default` before `config` to ensure the config file is resolved correctly ([#10898](https://github.com/tailwindlabs/tailwindcss/pull/10898)) - Pull pseudo elements outside of `:is` and `:has` when using `@apply` ([#10903](https://github.com/tailwindlabs/tailwindcss/pull/10903)) +- Update the types for the `safelist` config ([#10901](https://github.com/tailwindlabs/tailwindcss/pull/10901)) ## [3.3.0] - 2023-03-27 diff --git a/types/config.d.ts b/types/config.d.ts index 81e3c342d..bb40c8b71 100644 --- a/types/config.d.ts +++ b/types/config.d.ts @@ -46,12 +46,7 @@ type PrefixConfig = string type SeparatorConfig = string // Safelist related config -type SafelistConfig = - | string[] - | { - pattern: RegExp - variants?: string[] - }[] +type SafelistConfig = (string | { pattern: RegExp; variants?: string[] })[] // Blocklist related config type BlocklistConfig = string[]