Entity Declaration - Agrejus/pouchdb-entity-fabric GitHub Wiki
Entities must be declared for each collection in the Data Context. Each entity declaration must inherit from IDbRecord<> and be supplied with a generic of document type.
export enum DocumentTypes {
MyFirstDocument = "MyFirstDocument"
}
interface IMyFirstEntity extends IDbRecord<DocumentTypes> {
propertyOne: string;
propertyTwo: string;
}