git-documentdb
Version:
Offline-first database that syncs with Git
25 lines • 1.13 kB
TypeScript
/**
* GitDocumentDB
* Copyright (c) Hidekazu Kubota
*
* This source code is licensed under the Mozilla Public License Version 2.0
* found in the LICENSE file in the root directory of gitDDB source tree.
*/
import { ReadBlobResult } from 'isomorphic-git';
import { Doc, FatDoc, GetOptions, HistoryOptions, SerializeFormat } from '../types';
import { GitDDBInterface } from '../types_gitddb';
/**
* Implementation of getHistory
*
* @throws {@link Err.DatabaseClosingError}
* @throws {@link Err.RepositoryNotOpenError}
*
* @throws # Errors from blobToJsonDoc
* @throws {@link Err.InvalidJsonObjectError}
*/
export declare function getHistoryImpl(gitDDB: GitDDBInterface, shortName: string, collectionPath: string, serializeFormat: SerializeFormat, historyOptions?: HistoryOptions, options?: GetOptions, withMetaData?: boolean): Promise<(FatDoc | Doc | undefined)[]>;
/**
* readOldBlob
*/
export declare function readOldBlob(workingDir: string, fullDocPath: string, revision: number, historyOptions?: HistoryOptions): Promise<ReadBlobResult | undefined>;
//# sourceMappingURL=history.d.ts.map