mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fixed compilation issues
This commit is contained in:
parent
8050bac99b
commit
80abbb5e23
@ -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",
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user