typeorm-plus
Advanced tools
Comparing version 0.0.38 to 0.0.39
{ | ||
"name": "typeorm-plus", | ||
"private": false, | ||
"version": "0.0.38", | ||
"version": "0.0.39", | ||
"description": "Add extra features to TypeORM", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
@@ -1,2 +0,2 @@ | ||
import { ObjectType, SelectQueryBuilder, WhereExpression } from 'typeorm'; | ||
import { SelectQueryBuilder, WhereExpression } from 'typeorm'; | ||
export declare class SelectQueryBuilderPlus<Entity> extends SelectQueryBuilder<Entity> implements WhereExpression { | ||
@@ -6,4 +6,2 @@ paginate?(current: number, size: number): this; | ||
when?(condition: any, callback: (qb: this) => this): this; | ||
from<T>(entityTarget: (qb: SelectQueryBuilderPlus<any>) => SelectQueryBuilderPlus<any>, aliasName: string): SelectQueryBuilderPlus<T>; | ||
from<T>(entityTarget: ObjectType<T> | string, aliasName: string): SelectQueryBuilderPlus<T>; | ||
} |
@@ -54,7 +54,2 @@ "use strict"; | ||
}; | ||
SelectQueryBuilderPlus.prototype.from = function (entityTarget, aliasName) { | ||
var mainAlias = this.createFromAlias(entityTarget, aliasName); | ||
this.expressionMap.setMainAlias(mainAlias); | ||
return this; | ||
}; | ||
return SelectQueryBuilderPlus; | ||
@@ -61,0 +56,0 @@ }(typeorm_1.SelectQueryBuilder)); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43777
598