We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de0eadc commit b0620d0Copy full SHA for b0620d0
src/parser/style-context.ts
@@ -23,7 +23,7 @@ export interface StyleContextNoStyleElement {
23
export interface StyleContextParseError {
24
status: "parse-error";
25
sourceLang: string;
26
- error: any;
+ error: Error;
27
}
28
29
export interface StyleContextSuccess {
@@ -79,7 +79,7 @@ export function parseStyleContext(
79
from: ctx.parserOptions.filePath,
80
});
81
} catch (error) {
82
- return { status: "parse-error", sourceLang, error };
+ return { status: "parse-error", sourceLang, error: error as Error };
83
84
fixPostCSSNodeLocation(sourceAst, styleElement);
85
sourceAst.walk((node) => {
0 commit comments