From 266f66958bc45e4504e377b24347f7173def5405 Mon Sep 17 00:00:00 2001 From: Dominik G Date: Thu, 27 Jun 2024 19:54:27 +0200 Subject: [PATCH] fix(types): export CompileResult and Warning (#12212) * fix(types): export CompileResult and Warning * fix: regenerate types --- .changeset/lovely-ravens-crash.md | 5 +++++ packages/svelte/src/compiler/public.d.ts | 2 +- packages/svelte/types/index.d.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/lovely-ravens-crash.md 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' {