Refactor preprocessors module

This commit is contained in:
Surma
2018-08-01 12:32:29 +01:00
parent dce4fc70ac
commit c550fe9283
7 changed files with 63 additions and 70 deletions

View File

@@ -0,0 +1,15 @@
import { QuantizeOptions, defaultOptions as quantizerDefaultOptions } from './imagequant/quantizer';
interface Enableable {
enabled: boolean;
}
export interface PreprocessorState {
quantizer: Enableable & QuantizeOptions;
}
export const defaultPreprocessorState = {
quantizer: {
enabled: false,
...quantizerDefaultOptions,
},
};