preserve import { PointContainer } from '../utils/pointContainer' ; import { PaletteQuantizerYieldValue } from './paletteQuantizerYieldValue' ; export abstract class AbstractPaletteQuantizer { abstract sample ( pointContainer ) ; abstract quantize ( ) ; quantizeSync ( ) { for ( const value of this . quantize ( ) ) { if ( value . palette ) { return value . palette ; } } throw new Error ( 'unreachable' ) ; } }