import { Input , Directive } from '@angular/core' ; import { Constructor } from '../constructor.type' ; import { Appearance } from './appearance.enum' ; export function appearanceMixin < T extends Constructor < any > > ( Base ) { @ Directive ( ) class AppearanceBase extends Base { @ Input ( ) appearance = Appearance . Legacy ; } return AppearanceBase ; }