[feat] add SveltePreprocessor utility type (#7742)

pull/7765/head
metonym 2 years ago committed by GitHub
parent 1198bae835
commit 439bbf87e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>>;
}

Loading…
Cancel
Save