Fix content key plugin types mismatch (#9545)
* Fix plugin types * Update changelog
This commit is contained in:
parent
a8a2e2a719
commit
b5651e88c3
2 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Ignore unset values (like `null` or `undefined`) when resolving the classList for intellisense ([#9385](https://github.com/tailwindlabs/tailwindcss/pull/9385))
|
||||
- Implement fallback plugins when arbitrary values result in css from multiple plugins ([#9376](https://github.com/tailwindlabs/tailwindcss/pull/9376))
|
||||
- Improve type checking for formal syntax ([#9349](https://github.com/tailwindlabs/tailwindcss/pull/9349), [#9448](https://github.com/tailwindlabs/tailwindcss/pull/9448))
|
||||
- Don't require `content` key in custom plugin configs ([#9502](https://github.com/tailwindlabs/tailwindcss/pull/9502))
|
||||
- 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))
|
||||
|
||||
## [3.1.8] - 2022-08-05
|
||||
|
||||
|
|
|
|||
4
types/config.d.ts
vendored
4
types/config.d.ts
vendored
|
|
@ -326,8 +326,8 @@ export interface PluginAPI {
|
|||
export type PluginCreator = (api: PluginAPI) => void
|
||||
export type PluginsConfig = (
|
||||
| PluginCreator
|
||||
| { handler: PluginCreator; config?: Config }
|
||||
| { (options: any): { handler: PluginCreator; config?: Config }; __isOptionsFunction: true }
|
||||
| { handler: PluginCreator; config?: Partial<Config> }
|
||||
| { (options: any): { handler: PluginCreator; config?: Partial<Config> }; __isOptionsFunction: true }
|
||||
)[]
|
||||
|
||||
// Top level config related
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue