Update the types for the safelist config (#10901)
* Revert prepare of v3.3
* Revert "Revert prepare of v3.3"
This reverts commit 14d5a0a7c6.
* 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
2 changed files with 2 additions and 6 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue