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 <malfait.robin@gmail.com>
This commit is contained in:
Joey Jan 2023-03-29 16:54:57 -04:00 committed by GitHub
parent 0ecc4642fc
commit 60c06dc293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -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

7
types/config.d.ts vendored
View File

@ -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[]