Skip to content

Commit 3b4e04c

Browse files
author
Laurynas Grigutis
committed
Changed getDefaultTailwindSettings to return const object that satisfies Settings
1 parent 41cc24a commit 3b4e04c

File tree

1 file changed

+3
-2
lines changed
  • packages/tailwindcss-language-service/src/util

1 file changed

+3
-2
lines changed

packages/tailwindcss-language-service/src/util/state.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export type ClassNameMeta = {
173173
context: string[]
174174
}
175175

176-
export function getDefaultTailwindSettings(): Settings {
176+
export function getDefaultTailwindSettings() {
177177
return {
178178
editor: { tabSize: 2 },
179179
tailwindCSS: {
@@ -205,5 +205,6 @@ export function getDefaultTailwindSettings(): Settings {
205205
classFunctions: [],
206206
},
207207
},
208-
}
208+
// Return this as const object that satisfies Settings to be able to see the exact default values we specify
209+
} as const satisfies Settings
209210
}

0 commit comments

Comments
 (0)