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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy