Skip to content

Commit 386394c

Browse files
committed
Refactor
1 parent a5daeec commit 386394c

File tree

1 file changed

+6
-1
lines changed
  • packages/tailwindcss-language-service/src/util

1 file changed

+6
-1
lines changed

Diff for: packages/tailwindcss-language-service/src/util/state.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ export interface Variant {
8888
selectors: (params?: { value?: string; label?: string }) => string[]
8989
}
9090

91+
export interface ClassMetadata {
92+
color: culori.Color | KeywordColor | null
93+
modifiers?: string[]
94+
}
95+
9196
export interface State {
9297
enabled: boolean
9398
isCssConfig?: boolean
@@ -126,7 +131,7 @@ export interface State {
126131
editor?: EditorState
127132
jit?: boolean
128133
jitContext?: any
129-
classList?: Array<[string, { color: culori.Color | KeywordColor | null; modifiers?: string[] }]>
134+
classList?: Array<[string, ClassMetadata]>
130135
classListContainsMetadata?: boolean
131136
pluginVersions?: string
132137
completionItemData?: Record<string, any>

0 commit comments

Comments
 (0)