...
 
Commits (2)
......@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
## [0.1.2] 19 Sep 2016
- Added `entityType` property and balance of methods to `sourced-repo-mongo` definition.
## [0.1.1] 13 Sep 2016
- Fixed up incorrect references and instruction in README.
## [0.1.0] 12 Sep 2016
......
......@@ -6,7 +6,7 @@ Typescript type definition for [mateodelnorte/sourced](https://github.com/mateod
```sh
$ npm install --save mumba-typedef-sourced
$ typings install sourced=npm:mumba-typedef-sourced --save
$ typings install sourced=npm:mumba-typedef-sourced --save --global
```
## People
......
......@@ -195,11 +195,18 @@ declare module "sourced-repo-mongo" {
}
export class Repository extends EventEmitter {
entityType: Entity;
constructor(ctor: any, options?: RepositoryOptions);
commit(entity: Entity, options: CommitOptions, callback: Function): any;
commit(entity: Entity, callback: Function): any;
commitAll(entities: Entity[], options: CommitOptions, callback: Function): any;
commitAll(entities: Entity[], callback: Function): any;
get(id: string, callback: (err: Error, entity: Entity) => void): void;
getAll(ids: string[], callback: Function): any;
}
}
{
"name": "mumba-typedef-sourced",
"version": "0.1.1",
"version": "0.1.2",
"description": "A Typescript type definition for a mateodelnorte/sourced and mateodelnorte/sourced-repo-mongo interface.",
"main": "index.d.ts",
"scripts": {
......