import { decoratorMeta } from "../decoratorMeta" ; import { IEntityFieldIndex } from "../types" ; export function CompositeIndex ( fields = { } , hasAncestor = false ) { return ( target ) => { decoratorMeta . addEntityCompositeIndex ( target , fields , hasAncestor ) ; } ; }