mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* improve types of the `tailwindcss/plugin` This also exposes/types the `plugin.withOptions` as described here: https://tailwindcss.com/docs/plugins#exposing-options * update changelog
12 lines
403 B
TypeScript
12 lines
403 B
TypeScript
import type { Config, PluginCreator } from './types/config'
|
|
type Plugin = {
|
|
withOptions<T>(
|
|
plugin: (options: T) => PluginCreator,
|
|
config?: (options: T) => Config
|
|
): { (options: T): { handler: PluginCreator; config?: Config }; __isOptionsFunction: true }
|
|
(plugin: PluginCreator, config?: Config): { handler: PluginCreator; config?: Config }
|
|
}
|
|
|
|
declare const plugin: Plugin
|
|
export = plugin
|