mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Added 'any'/'all' constructors to Predicate; updated heading to breeze 1.5.x
This commit is contained in:
@@ -405,6 +405,11 @@ function test_entityQuery() {
|
||||
.where("toUpper(substring(CompanyName, 1, 2))", breeze.FilterQueryOp.Equals, "OM");
|
||||
var q2 = query.toType("foo").orderBy("foo2");
|
||||
|
||||
var pred = new breeze.Predicate('items', 'any', 'serialNumber', 'contains', '12345');
|
||||
var pred = new breeze.Predicate('items', breeze.FilterQueryOp.Any, 'serialNumber', breeze.FilterQueryOp.Contains, '12345');
|
||||
var pred = breeze.Predicate.create('items', 'any', 'serialNumber', 'contains', '12345');
|
||||
var pred = breeze.Predicate.create('items', breeze.FilterQueryOp.Any, 'serialNumber', breeze.FilterQueryOp.Contains, '12345');
|
||||
|
||||
var json = query.toJSON();
|
||||
}
|
||||
|
||||
|
||||
Vendored
+6
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Breeze 1.4
|
||||
// Type definitions for Breeze 1.5.x
|
||||
// Project: http://www.breezejs.com/
|
||||
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -10,6 +10,7 @@
|
||||
// Updated Aug 22 2014 for Breeze 1.4.17 and removing Q dependency - Steve Schmitt ( www.ideablade.com)
|
||||
// Updated Jan 16 2015 for Breeze 1.4.17 to add support for noimplicitany - Kevin Wilson ( www.kwilson.me.uk )
|
||||
// Updated Jan 20 2015 for Breeze 1.5.2 and merging changes from DefinitelyTyped
|
||||
// Updated Feb 28 2015 add any/all clause on Predicate
|
||||
|
||||
declare module breeze.core {
|
||||
|
||||
@@ -770,6 +771,8 @@ declare module breeze {
|
||||
constructor(property: string, operator: FilterQueryOpSymbol, value: any);
|
||||
constructor(property: string, operator: string, value: { value: any; isLiteral?: boolean; dataType?: breeze.DataType });
|
||||
constructor(property: string, operator: FilterQueryOpSymbol, value: { value: any; isLiteral?: boolean; dataType?: breeze.DataType });
|
||||
constructor(property: string, filterop: FilterQueryOpSymbol, property2: string, filterop2: FilterQueryOpSymbol, value: any); // for any/all clauses
|
||||
constructor(property: string, filterop: string, property2: string, filterop2: string, value: any); // for any/all clauses
|
||||
/** Create predicate from an expression tree */
|
||||
constructor(tree: Object);
|
||||
|
||||
@@ -798,6 +801,8 @@ declare module breeze {
|
||||
(...predicates: Predicate[]): Predicate;
|
||||
(property: string, operator: string, value: any, valueIsLiteral?: boolean): Predicate;
|
||||
(property: string, operator: FilterQueryOpSymbol, value: any, valueIsLiteral?: boolean): Predicate;
|
||||
(property: string, filterop: FilterQueryOpSymbol, property2: string, filterop2: FilterQueryOpSymbol, value: any): Predicate; // for any/all clauses
|
||||
(property: string, filterop: string, property2: string, filterop2: string, value: any): Predicate; // for any/all clauses
|
||||
}
|
||||
|
||||
class QueryOptions {
|
||||
|
||||
Reference in New Issue
Block a user