UNPKG

gitdb-database

Version:

A production-ready CLI tool for managing a NoSQL database using GitHub repositories as storage

8 lines 431 B
/** * Recursively resolve $ref fields in a document. * @param doc The document to resolve * @param fetcher A function (collection, id) => document, used to fetch referenced docs * @returns The document with all $ref fields replaced by the referenced documents */ export declare function resolveReferences(doc: any, fetcher: (collection: string, id: string) => Promise<any>): Promise<any>; //# sourceMappingURL=resolve.d.ts.map