UNPKG

hydrate-mongodb

Version:
15 lines (14 loc) 596 B
import { InternalSession } from "./session"; import { EntityMapping } from "./mapping/entityMapping"; import { ResultCallback } from "./core/callback"; export declare class Reference { mapping: EntityMapping; private _id; id: string; constructor(mapping: EntityMapping, _id: any); fetch(session: InternalSession, callback: ResultCallback<any>): void; equals(other: any): boolean; static areEqual(value1: any, value2: any): boolean; static isReference(obj: any): boolean; static fetch(session: InternalSession, obj: any, callback: ResultCallback<any>): void; }