Skip to content

Commit f3f6344

Browse files
committed
fix lint
1 parent ae3bf9e commit f3f6344

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

packages/svelte/src/compiler/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export interface Warning {
5959
end?: Location;
6060
position?: [number, number];
6161
frame?: string;
62+
toString(): string;
6263
}
6364

6465
export interface CompileError extends InternalCompileError {}

packages/svelte/types/index.d.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -715,12 +715,14 @@ declare module 'svelte/compiler' {
715715
}
716716

717717
export interface Warning {
718-
start?: Location;
719-
end?: Location;
720-
// TODO there was pos: number in Svelte 4 - do we want to add it back?
721718
code: string;
722719
message: string;
723720
filename?: string;
721+
start?: Location;
722+
end?: Location;
723+
position?: [number, number];
724+
frame?: string;
725+
toString(): string;
724726
}
725727

726728
export interface CompileError extends InternalCompileError {}
@@ -2542,12 +2544,14 @@ declare module 'svelte/types/compiler/interfaces' {
25422544
/** @deprecated import this from 'svelte' instead */
25432545
export type Warning = Warning_1;
25442546
interface Warning_1 {
2545-
start?: Location;
2546-
end?: Location;
2547-
// TODO there was pos: number in Svelte 4 - do we want to add it back?
25482547
code: string;
25492548
message: string;
25502549
filename?: string;
2550+
start?: Location;
2551+
end?: Location;
2552+
position?: [number, number];
2553+
frame?: string;
2554+
toString(): string;
25512555
}
25522556

25532557
type CssHashGetter = (args: {

0 commit comments

Comments
 (0)