diff --git a/src/compiler/preprocess/types.ts b/src/compiler/preprocess/types.ts index b1e605238db..faef6c74ed5 100644 --- a/src/compiler/preprocess/types.ts +++ b/src/compiler/preprocess/types.ts @@ -40,3 +40,10 @@ export interface PreprocessorGroup { style?: Preprocessor; script?: Preprocessor; } + +export interface SveltePreprocessor< + PreprocessorType extends keyof PreprocessorGroup, + Options = any +> { + (options?: Options): Required>; +}