Skip to content

Commit

Permalink
[feat] add SveltePreprocessor utility type (#7742)
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Aug 1, 2022
1 parent 1198bae commit 439bbf8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/compiler/preprocess/types.ts
Expand Up @@ -40,3 +40,10 @@ export interface PreprocessorGroup {
style?: Preprocessor;
script?: Preprocessor;
}

export interface SveltePreprocessor<
PreprocessorType extends keyof PreprocessorGroup,
Options = any
> {
(options?: Options): Required<Pick<PreprocessorGroup, PreprocessorType>>;
}

0 comments on commit 439bbf8

Please sign in to comment.