import { IRelation } from "../relation"; /** * Base interface for relation that are associated with many entities. */ export interface IToManyRelation extends IRelation { /** * Indicates whether all the related items are loaded. */ isFullyLoaded: boolean; /** * Adds an id to the relation's values. * @param id - The id to add */ add(id: number): void; /** * Adds multiple ids to the relation's values. * @param ids - The ids to add */ addRange(ids: Array): void; /** * Adds an id to the relation's values. * @param identifier - The identifier to add */ addAsync(identifier: string): Promise; /** * Adds multiple ids to the relation's values. * @param identifiers - The identifiers to add */ addRangeAsync(identifiers: Array): Promise; }