@@ -725,13 +725,7 @@ declare module 'svelte/compiler' {
725
725
filename ?: string ;
726
726
}
727
727
728
- interface CompileError_1 extends Error {
729
- code : string ;
730
- filename ?: string ;
731
- position ?: [ number , number ] ;
732
- start ?: Location ;
733
- end ?: Location ;
734
- }
728
+ interface CompileError extends InternalCompileError { }
735
729
736
730
type CssHashGetter = ( args : {
737
731
name : string ;
@@ -1206,18 +1200,6 @@ declare module 'svelte/compiler' {
1206
1200
function preprocess ( source : string , preprocessor : PreprocessorGroup | PreprocessorGroup [ ] , options ?: {
1207
1201
filename ?: string ;
1208
1202
} | undefined ) : Promise < Processed > ;
1209
- class CompileError extends Error {
1210
-
1211
- constructor ( code : string , message : string , position : [ number , number ] | undefined ) ;
1212
- filename : string | undefined ;
1213
-
1214
- position : CompileError_1 [ "position" ] ;
1215
-
1216
- start : CompileError_1 [ "start" ] ;
1217
-
1218
- end : CompileError_1 [ "end" ] ;
1219
- code : string ;
1220
- }
1221
1203
/**
1222
1204
* The current version, as set in package.json.
1223
1205
*
@@ -1902,8 +1884,20 @@ declare module 'svelte/compiler' {
1902
1884
content : Program ;
1903
1885
attributes : Attribute [ ] ;
1904
1886
}
1887
+ class InternalCompileError extends Error {
1888
+
1889
+ constructor ( code : string , message : string , position : [ number , number ] | undefined ) ;
1890
+ filename : string | undefined ;
1891
+
1892
+ position : [ number , number ] | undefined ;
1893
+
1894
+ start : Location | undefined ;
1895
+
1896
+ end : Location | undefined ;
1897
+ code : string ;
1898
+ }
1905
1899
1906
- export { MarkupPreprocessor , Preprocessor , PreprocessorGroup , Processed , CompileOptions , ModuleCompileOptions , CompileResult , Warning , compile , compileModule , parse , walk , preprocess , CompileError , VERSION , migrate } ;
1900
+ export { MarkupPreprocessor , Preprocessor , PreprocessorGroup , Processed , CompileError , CompileOptions , ModuleCompileOptions , CompileResult , Warning , compile , compileModule , parse , walk , preprocess , VERSION , migrate } ;
1907
1901
}
1908
1902
1909
1903
declare module 'svelte/easing' {
0 commit comments