Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Nov 8, 2024
1 parent a5daeec commit 386394c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/tailwindcss-language-service/src/util/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ export interface Variant {
selectors: (params?: { value?: string; label?: string }) => string[]
}

export interface ClassMetadata {
color: culori.Color | KeywordColor | null
modifiers?: string[]
}

export interface State {
enabled: boolean
isCssConfig?: boolean
Expand Down Expand Up @@ -126,7 +131,7 @@ export interface State {
editor?: EditorState
jit?: boolean
jitContext?: any
classList?: Array<[string, { color: culori.Color | KeywordColor | null; modifiers?: string[] }]>
classList?: Array<[string, ClassMetadata]>
classListContainsMetadata?: boolean
pluginVersions?: string
completionItemData?: Record<string, any>
Expand Down

0 comments on commit 386394c

Please sign in to comment.