import { ClassInfo } from '../class' ; import { getMetadata } from '../class/metadata' ; import { classLoader } from '../class/ClassLoader' ; export function classInfo ( info = { } ) { return target => { if ( classLoader . hasClass ( target ) ) { classLoader . unregisterClass ( target ) ; } Object . assign ( getMetadata ( target ) . classInfo , { } as ClassInfo , info ) ; classLoader . registerClass ( target ) ; } ; }