Skip to content

Commit caa2ba1

Browse files
committed
Merge branch 'master' of github.com:tailwindlabs/tailwindcss-intellisense
2 parents e197b21 + b09d484 commit caa2ba1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/tailwindcss-language-service/src/diagnostics/getInvalidConfigPathDiagnostics.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ function validateConfigPath(
9090
typeof value === 'number' ||
9191
value instanceof String ||
9292
value instanceof Number ||
93-
Array.isArray(value)
93+
Array.isArray(value) ||
94+
typeof value === 'function'
9495
)
9596
) {
96-
let reason = `'${pathToString(path)}' was found but does not resolve to a string.`
97+
let reason = `'${pathToString(path)}' was found but does not resolve to a string, number, array or function.`
9798

9899
if (isObject(value)) {
99100
let validKeys = Object.keys(value).filter(

0 commit comments

Comments
 (0)