import { Input , Directive } from '@angular/core' ; import { Constructor } from '../constructor.type' ; import { Size } from './size.enum' ; export function sizeMixin < T extends Constructor < any > > ( Base ) { @ Directive ( ) class SizeBase extends Base { @ Input ( ) size = Size . Small ; } return SizeBase ; }