Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit ae39119

Browse files
committed
fix(compiler/src/index.ts): fix the return value of fast-glob is any, so it is modified to be string[] with assertion.
1 parent 0ed4ca5 commit ae39119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function isStyleClass(filePath: string): boolean {
4444
appRoot = path.join(process.cwd(), '../../');
4545
}
4646
const csstsPattern = [path.join(appRoot, '**/*.ts'), path.join(appRoot, '**/*.tsx')];
47-
const files = await FastGlob(csstsPattern);
47+
const files = (await FastGlob(csstsPattern)) as string[];
4848
const styleFiles = files.filter(file => {
4949
return isStyleClass(file);
5050
});

0 commit comments

Comments
 (0)