Skip to content
Prev Previous commit
Next Next commit
Update packages/tailwindcss/src/compat/plugin-api.ts
Co-authored-by: Jordan Pittman <[email protected]>
  • Loading branch information
philipp-spiess and thecrypticace committed Dec 3, 2024
commit 95d5308ac5e4793622363a002943361beb583273
8 changes: 7 additions & 1 deletion packages/tailwindcss/src/compat/plugin-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ import * as SelectorParser from './selector-parser'

export type Config = UserConfig
export type PluginFn = (api: PluginAPI) => void
export type PluginWithConfig = { handler: PluginFn; config?: UserConfig; reference?: boolean }
export type PluginWithConfig = {
handler: PluginFn;
config?: UserConfig;

/** @internal */
reference?: boolean
}
export type PluginWithOptions<T> = {
(options?: T): PluginWithConfig
__isOptionsFunction: true
Expand Down