Skip to content

Commit 60c06dc

Browse files
Update the types for the safelist config (#10901)
* Revert prepare of v3.3 * Revert "Revert prepare of v3.3" This reverts commit 14d5a0a. * update SafelistConfig type I think this type was meant to be like this? * format types * update changelog --------- Co-authored-by: Robin Malfait <[email protected]>
1 parent 0ecc464 commit 60c06dc

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Try resolving `config.default` before `config` to ensure the config file is resolved correctly ([#10898](https://github.com/tailwindlabs/tailwindcss/pull/10898))
1313
- Pull pseudo elements outside of `:is` and `:has` when using `@apply` ([#10903](https://github.com/tailwindlabs/tailwindcss/pull/10903))
14+
- Update the types for the `safelist` config ([#10901](https://github.com/tailwindlabs/tailwindcss/pull/10901))
1415

1516
## [3.3.0] - 2023-03-27
1617

types/config.d.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@ type PrefixConfig = string
4646
type SeparatorConfig = string
4747

4848
// Safelist related config
49-
type SafelistConfig =
50-
| string[]
51-
| {
52-
pattern: RegExp
53-
variants?: string[]
54-
}[]
49+
type SafelistConfig = (string | { pattern: RegExp; variants?: string[] })[]
5550

5651
// Blocklist related config
5752
type BlocklistConfig = string[]

0 commit comments

Comments
 (0)