From 439bbf87e33e6cf22abb08689fea96fc58f9e9cb Mon Sep 17 00:00:00 2001 From: metonym Date: Mon, 1 Aug 2022 00:14:26 -0700 Subject: [PATCH] [feat] add SveltePreprocessor utility type (#7742) --- src/compiler/preprocess/types.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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>; +}