import {
processors,
StylePreprocessor,
- StylePreprocessorResults
+ StylePreprocessorResults,
+ PreprocessLang
} from './stylePreprocessors'
export interface StyleCompileOptions {
map?: object
scoped?: boolean
trim?: boolean
- preprocessLang?: string
+ preprocessLang?: PreprocessLang
preprocessOptions?: any
postcssOptions?: any
postcssPlugins?: any[]
}
}
-export const processors: Record<string, StylePreprocessor> = {
+export type PreprocessLang = 'less' | 'sass' | 'scss' | 'styl' | 'stylus'
+
+export const processors: Record<PreprocessLang, StylePreprocessor> = {
less,
sass,
scss,