import { IRepository } from "../interfaces/datastore/IRepository"; import { Repository } from "typeorm"; /** * Wrapper class for typeorm Repository */ export declare class RepositoryWrapper implements IRepository { repository: Repository; constructor(repository: Repository); /** * Creates a new Entity for the given fields * @param fields key-value pairs that must match the schema of the Entity to which the repository belongs */ create(fields: any): any | undefined; /** * Saves an Entity to the data store * @param entity Entity object */ save(entity: any): Promise; }