import { EntityBase } from '../entity-base' ; import { Order , Orderable , OrderLink } from '../order' ; import { Filterable , FilterLink } from '../filter' ; import { DeSerializers } from '../de-serializers' ; import { Link } from './link' ; typeparam typeparam internal export class OneToOneLink < EntityT extends EntityBase , DeSerializersT extends DeSerializers , LinkedEntityT extends EntityBase > extends Link < EntityT , DeSerializersT , LinkedEntityT > { /**
     * List of criteria of the linked entity to order the given entity by with descending priority.
     */ orderBys : Order < LinkedEntityT > [ ] = [ ] ; /**
     * Filterables to apply to the given entity based on the linked entity.
     */ filters : Filterable < LinkedEntityT , DeSerializersT > ; clone ( ) { const clonedLink = super . clone ( ) ; clonedLink . filters = this . filters ; clonedLink . orderBys = this . orderBys ; return clonedLink ; } param orderBy returns orderBy ( ... orderBy ) { return new OrderLink ( this , orderBy ) ; } param filters returns filter ( ... filters ) { return new FilterLink ( this , filters ) ; } }