Skip to content

Commit 23ec7c0

Browse files
Add legacy type exports to tailwindcss/plugin export
1 parent 6164783 commit 23ec7c0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/tailwindcss/src/plugin.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
import type { Config, PluginFn, PluginWithConfig, PluginWithOptions } from './compat/plugin-api'
1+
import type { ThemeConfig } from './compat/config/types'
2+
import type {
3+
Config,
4+
Plugin,
5+
PluginAPI,
6+
PluginFn,
7+
PluginWithConfig,
8+
PluginWithOptions,
9+
} from './compat/plugin-api'
210

311
function createPlugin(handler: PluginFn, config?: Partial<Config>): PluginWithConfig {
412
return {
@@ -24,3 +32,6 @@ createPlugin.withOptions = function <T>(
2432
}
2533

2634
export default createPlugin
35+
36+
// v3 compatible types previously exported via `tailwindcss/types/config`
37+
export type { Config, PluginAPI, PluginFn as PluginCreator, Plugin as PluginsConfig, ThemeConfig }

0 commit comments

Comments
 (0)