Skip to content

Commit 439bbf8

Browse files
authored
[feat] add SveltePreprocessor utility type (#7742)
1 parent 1198bae commit 439bbf8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/compiler/preprocess/types.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ export interface PreprocessorGroup {
4040
style?: Preprocessor;
4141
script?: Preprocessor;
4242
}
43+
44+
export interface SveltePreprocessor<
45+
PreprocessorType extends keyof PreprocessorGroup,
46+
Options = any
47+
> {
48+
(options?: Options): Required<Pick<PreprocessorGroup, PreprocessorType>>;
49+
}

0 commit comments

Comments
 (0)