git-goose
Version:
a mongoose plugin that enables git like change tracking
16 lines (15 loc) • 779 B
TypeScript
import { Model } from 'mongoose';
import { ContextualGitConfig } from '../config';
import { PatcherName, RefId } from '../types';
import { GitWithContext } from './context';
/**
* Git manager with the knowledge of its target referenceId, enabling contextually aware operations
*
* @template TargetDocType - The type of the document to be generated
* @template TPatcherName - The inferred name of the patcher to use (used for type hinting patches)
*/
export declare class GitFromRefId<TargetDocType, TPatcherName extends PatcherName> extends GitWithContext<TargetDocType, TPatcherName> {
private readonly _refId;
constructor(referenceModel: Model<TargetDocType>, refId: RefId, conf?: Partial<ContextualGitConfig<TPatcherName>>);
protected get refId(): unknown;
}