Skip to content

Commit b0620d0

Browse files
committed
chore: style Context parsing error type fix
1 parent de0eadc commit b0620d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser/style-context.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface StyleContextNoStyleElement {
2323
export interface StyleContextParseError {
2424
status: "parse-error";
2525
sourceLang: string;
26-
error: any;
26+
error: Error;
2727
}
2828

2929
export interface StyleContextSuccess {
@@ -79,7 +79,7 @@ export function parseStyleContext(
7979
from: ctx.parserOptions.filePath,
8080
});
8181
} catch (error) {
82-
return { status: "parse-error", sourceLang, error };
82+
return { status: "parse-error", sourceLang, error: error as Error };
8383
}
8484
fixPostCSSNodeLocation(sourceAst, styleElement);
8585
sourceAst.walk((node) => {

0 commit comments

Comments
 (0)