Skip to content

Commit 585c207

Browse files
committed
Update types to work with Node16 module resolution
1 parent 61dc99f commit 585c207

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

types/index.d.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
import { PluginCreator } from 'postcss'
1+
import type { PluginCreator } from 'postcss'
22
import type { Config } from './config.d'
33

44
declare const plugin: PluginCreator<string | Config | { config: string | Config }>
55

6-
export { Config }
7-
export default plugin
6+
declare type _Config = Config
7+
declare namespace plugin {
8+
export type { _Config as Config }
9+
}
10+
11+
export = plugin

0 commit comments

Comments
 (0)