diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fc7165535cc..e73dc309a188 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 81e3c342db16..bb40c8b71a10 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[]