Skip to content

Commit bb90c7f

Browse files
silverwindclaude
andcommitted
Fix TS2742 error when inferring exported Config type
Change `Config` from a type alias to an interface so TypeScript preserves its name in declaration emit instead of resolving through to `UserConfig` in the hashed internal chunk file. Fixes #19706 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d15d92c commit bb90c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tailwindcss/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { segment } from './utils/segment'
3434
import { topologicalSort } from './utils/topological-sort'
3535
import { compoundsForSelectors, IS_VALID_VARIANT_NAME, substituteAtVariant } from './variants'
3636
import { walk, WalkAction } from './walk'
37-
export type Config = UserConfig
37+
export interface Config extends UserConfig {}
3838

3939
const IS_VALID_PREFIX = /^[a-z]+$/
4040

0 commit comments

Comments
 (0)