mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
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:
parent
0ecc4642fc
commit
60c06dc293
@ -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
7
types/config.d.ts
vendored
@ -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[]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user