From bbe3fca4249db17127added8df46446392e127f0 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Thu, 28 Sep 2023 11:12:50 -0400 Subject: [PATCH] Update types to work with Node16 module resolution (#12097) * Update types to work with Node16 module resolution * Update changelog --- CHANGELOG.md | 1 + types/index.d.ts | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26a88857287d..dd3bf0544a8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Handle variable colors that have variable fallback values ([#12049](https://github.com/tailwindlabs/tailwindcss/pull/12049)) - Batch reading content files to prevent `too many open files` error ([#12079](https://github.com/tailwindlabs/tailwindcss/pull/12079)) - Skip over classes inside `:not(…)` when nested in an at-rule ([#12105](https://github.com/tailwindlabs/tailwindcss/pull/12105)) +- Update types to work with `Node16` module resolution ([#12097](https://github.com/tailwindlabs/tailwindcss/pull/12097)) ## [3.3.3] - 2023-07-13 diff --git a/types/index.d.ts b/types/index.d.ts index 131877e77868..b7fc92659d56 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,7 +1,11 @@ -import { PluginCreator } from 'postcss' +import type { PluginCreator } from 'postcss' import type { Config } from './config.d' declare const plugin: PluginCreator -export { Config } -export default plugin +declare type _Config = Config +declare namespace plugin { + export type { _Config as Config } +} + +export = plugin