Skip to content

Commit d322286

Browse files
Update types to work with Node16 module resolution (#12097)
* Update types to work with Node16 module resolution * Update changelog
1 parent 1e7dd3a commit d322286

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020
- Handle variable colors that have variable fallback values ([#12049](https://github.com/tailwindlabs/tailwindcss/pull/12049))
2121
- Batch reading content files to prevent `too many open files` error ([#12079](https://github.com/tailwindlabs/tailwindcss/pull/12079))
2222
- Skip over classes inside `:not(…)` when nested in an at-rule ([#12105](https://github.com/tailwindlabs/tailwindcss/pull/12105))
23+
- Update types to work with `Node16` module resolution ([#12097](https://github.com/tailwindlabs/tailwindcss/pull/12097))
2324

2425
### Added
2526

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)