diff --git a/.changeset/lovely-ravens-crash.md b/.changeset/lovely-ravens-crash.md new file mode 100644 index 0000000000..be0c4130ad --- /dev/null +++ b/.changeset/lovely-ravens-crash.md @@ -0,0 +1,5 @@ +--- +"svelte": patch +--- + +fix(types): export CompileResult and Warning diff --git a/packages/svelte/src/compiler/public.d.ts b/packages/svelte/src/compiler/public.d.ts index cd91c97f47..53742324e9 100644 --- a/packages/svelte/src/compiler/public.d.ts +++ b/packages/svelte/src/compiler/public.d.ts @@ -5,4 +5,4 @@ export type { PreprocessorGroup, Processed } from './preprocess/public'; -export type { CompileOptions, ModuleCompileOptions } from './types/index'; +export type { CompileOptions, ModuleCompileOptions, CompileResult, Warning } from './types/index'; diff --git a/packages/svelte/types/index.d.ts b/packages/svelte/types/index.d.ts index d3dd49560f..d7503bb08f 100644 --- a/packages/svelte/types/index.d.ts +++ b/packages/svelte/types/index.d.ts @@ -1893,7 +1893,7 @@ declare module 'svelte/compiler' { attributes: Attribute[]; } - export { MarkupPreprocessor, Preprocessor, PreprocessorGroup, Processed, CompileOptions, ModuleCompileOptions, compile, compileModule, parse, walk, preprocess, CompileError, VERSION, migrate }; + export { MarkupPreprocessor, Preprocessor, PreprocessorGroup, Processed, CompileOptions, ModuleCompileOptions, CompileResult, Warning, compile, compileModule, parse, walk, preprocess, CompileError, VERSION, migrate }; } declare module 'svelte/easing' {