import { RegistryWithDefaultKey , OverwritePolicy } from '../models' ; export default class ColorSchemeRegistry < T > extends RegistryWithDefaultKey < T > { constructor ( ) { super ( { name : 'ColorScheme' , overwritePolicy : OverwritePolicy . WARN , setFirstItemAsDefault : true , } ) ; } get ( key ? ) { return super . get ( key ) as T | undefined ; } }