Skip to content

Commit 16da9af

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

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/good-timers-cheat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte-eslint-parser": patch
3+
---
4+
5+
chore: style Context parsing error type fix

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