Skip to content

Commit

Permalink
Fix missing blocklist type (#10239)
Browse files Browse the repository at this point in the history
* Fix missing `blocklist` type

* Update changelog
  • Loading branch information
wongjn authored Jan 4, 2023
1 parent 5d82824 commit 7b3de61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Allow direct nesting in `root` or `@layer` nodes ([#10229](https:/tailwindlabs/tailwindcss/pull/10229))
- Don't prefix classes in arbitrary variants ([#10214](https:/tailwindlabs/tailwindcss/pull/10214))
- Fix perf regression when checking for changed content ([#10234](https:/tailwindlabs/tailwindcss/pull/10234))
- Fix missing `blocklist` member in the `Config` type ([#10239](https:/tailwindlabs/tailwindcss/pull/10239))

### Changed

Expand Down
4 changes: 4 additions & 0 deletions types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ type SafelistConfig =
variants?: string[]
}[]

// Blocklist related config
type BlocklistConfig = string[]

// Presets related config
type PresetsConfig = Config[]

Expand Down Expand Up @@ -349,6 +352,7 @@ interface OptionalConfig {
prefix: Partial<PrefixConfig>
separator: Partial<SeparatorConfig>
safelist: Partial<SafelistConfig>
blocklist: Partial<BlocklistConfig>
presets: Partial<PresetsConfig>
future: Partial<FutureConfig>
experimental: Partial<ExperimentalConfig>
Expand Down

0 comments on commit 7b3de61

Please sign in to comment.