@furystack/repository
Version:
Repository implementation for FuryStack
15 lines • 800 B
TypeScript
import type { WithOptionalId } from '@furystack/core';
import type { Constructable } from '@furystack/inject';
import type { DataSetSettings } from './data-set-setting.js';
import { DataSet } from './data-set.js';
/**
* Collection of authorized physical stores
*/
export declare class Repository implements Disposable {
[Symbol.dispose](): void;
private dataSets;
getDataSetFor<T, TPrimaryKey extends keyof T, TWritableData = WithOptionalId<T, TPrimaryKey>>(model: Constructable<T>, primaryKey: TPrimaryKey): DataSet<T, TPrimaryKey, TWritableData>;
createDataSet<T, TPrimaryKey extends keyof T>(model: Constructable<T>, primaryKey: TPrimaryKey, settings?: Partial<DataSetSettings<T, TPrimaryKey>>): this;
private readonly storeManager;
}
//# sourceMappingURL=repository.d.ts.map