Skip to content

Commit b5651e8

Browse files
Fix content key plugin types mismatch (#9545)
* Fix plugin types * Update changelog
1 parent a8a2e2a commit b5651e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4848
- Ignore unset values (like `null` or `undefined`) when resolving the classList for intellisense ([#9385](https://github.com/tailwindlabs/tailwindcss/pull/9385))
4949
- Implement fallback plugins when arbitrary values result in css from multiple plugins ([#9376](https://github.com/tailwindlabs/tailwindcss/pull/9376))
5050
- Improve type checking for formal syntax ([#9349](https://github.com/tailwindlabs/tailwindcss/pull/9349), [#9448](https://github.com/tailwindlabs/tailwindcss/pull/9448))
51-
- Don't require `content` key in custom plugin configs ([#9502](https://github.com/tailwindlabs/tailwindcss/pull/9502))
51+
- Don't require `content` key in custom plugin configs ([#9502](https://github.com/tailwindlabs/tailwindcss/pull/9502), [#9545](https://github.com/tailwindlabs/tailwindcss/pull/9545))
5252

5353
## [3.1.8] - 2022-08-05
5454

types/config.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ export interface PluginAPI {
326326
export type PluginCreator = (api: PluginAPI) => void
327327
export type PluginsConfig = (
328328
| PluginCreator
329-
| { handler: PluginCreator; config?: Config }
330-
| { (options: any): { handler: PluginCreator; config?: Config }; __isOptionsFunction: true }
329+
| { handler: PluginCreator; config?: Partial<Config> }
330+
| { (options: any): { handler: PluginCreator; config?: Partial<Config> }; __isOptionsFunction: true }
331331
)[]
332332

333333
// Top level config related

0 commit comments

Comments
 (0)