fixed compilation issues

This commit is contained in:
Umed Khudoiberdiev 2016-04-30 15:24:17 +05:00
parent 8050bac99b
commit 80abbb5e23
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "typeorm",
"private": true,
"version": "0.0.2-alpha.7",
"version": "0.0.2-alpha.8",
"description": "Data-mapper ORM for Typescript",
"license": "Apache-2.0",
"readmeFilename": "README.md",

View File

@ -94,8 +94,9 @@ export class ReactiveEntityManager {
/**
* Removes a given entity from the database.
*/
remove<Entity>(entity: Entity) {
return this.getReactiveRepository(<any> entity.constructor).remove(entity);
remove<Entity>(entity: Entity): Rx.Observable<Entity[]> {
// todo: extra casting is used strange tsc error here, check later maybe typescript bug
return <any> this.getReactiveRepository(<any> entity.constructor).remove(entity);
}
/**