import MetadataStorage from "./MetadataStorage" ; export const ObjectType = target => { MetadataStorage . objectTypes . push ( target ) ; } ; export const Field = ( prototype , propertyKey ) => { const target = prototype . constructor ; MetadataStorage . fields . push ( { target , propertyKey } ) ; } ;