Skip to content

Commit

Permalink
Update the types for the safelist config (#10901)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
OverFlow636 and RobinMalfait authored Mar 29, 2023
1 parent 0ecc464 commit 60c06dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 1 addition & 6 deletions types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]
Expand Down

0 comments on commit 60c06dc

Please sign in to comment.