@@ -5942,8 +5942,8 @@ declare namespace firebase.database {
5942
5942
/**
5943
5943
* Creates a `Query` with the specified ending point.
5944
5944
*
5945
- * Using `startAt()`, `endAt ()`, and `equalTo ()` allows you to choose arbitrary
5946
- * starting and ending points for your queries.
5945
+ * Using `startAt()`, `startAfter ()`, `endBefore()`, `endAt ()` and `equalTo()`
5946
+ * allows you to choose arbitrary starting and ending points for your queries.
5947
5947
*
5948
5948
* The ending point is inclusive, so children with exactly the specified value
5949
5949
* will be included in the query. The optional key argument can be used to
@@ -5977,11 +5977,34 @@ declare namespace firebase.database {
5977
5977
value : number | string | boolean | null ,
5978
5978
key ?: string
5979
5979
) : firebase . database . Query ;
5980
+ /**
5981
+ * Creates a `Query` with the specified ending point (exclusive).
5982
+ *
5983
+ * Using `startAt()`, `startAfter()`, `endBefore()`, `endAt()` and `equalTo()`
5984
+ * allows you to choose arbitrary starting and ending points for your queries.
5985
+ *
5986
+ * The ending point is exclusive. If only a value is provided, children
5987
+ * with a value less than the specified value will be included in the query.
5988
+ * If a key is specified, then children must have a value lesss than or equal
5989
+ * to the specified value and a a key name less than the specified key.
5990
+ *
5991
+ * @param value The value to end before. The argument
5992
+ * type depends on which `orderBy*()` function was used in this query.
5993
+ * Specify a value that matches the `orderBy*()` type. When used in
5994
+ * combination with `orderByKey()`, the value must be a string.
5995
+ * @param key The child key to end before, among the children with the
5996
+ * previously specified priority. This argument is only allowed if ordering by
5997
+ * child, value, or priority.
5998
+ */
5999
+ endBefore (
6000
+ value : number | string | boolean | null ,
6001
+ key ?: string
6002
+ ) : firebase . database . Query ;
5980
6003
/**
5981
6004
* Creates a `Query` that includes children that match the specified value.
5982
6005
*
5983
- * Using `startAt()`, `endAt ()`, and `equalTo ()` allows us to choose arbitrary
5984
- * starting and ending points for our queries.
6006
+ * Using `startAt()`, `startAfter ()`, `endBefore()`, `endAt ()` and `equalTo()`
6007
+ * allows you to choose arbitrary starting and ending points for your queries.
5985
6008
*
5986
6009
* The optional key argument can be used to further limit the range of the
5987
6010
* query. If it is specified, then children that have exactly the specified
@@ -6426,8 +6449,8 @@ declare namespace firebase.database {
6426
6449
/**
6427
6450
* Creates a `Query` with the specified starting point.
6428
6451
*
6429
- * Using `startAt()`, `endAt ()`, and `equalTo ()` allows you to choose arbitrary
6430
- * starting and ending points for your queries.
6452
+ * Using `startAt()`, `startAfter ()`, `endBefore()`, `endAt ()` and `equalTo()`
6453
+ * allows you to choose arbitrary starting and ending points for your queries.
6431
6454
*
6432
6455
* The starting point is inclusive, so children with exactly the specified value
6433
6456
* will be included in the query. The optional key argument can be used to
@@ -6460,6 +6483,37 @@ declare namespace firebase.database {
6460
6483
value : number | string | boolean | null ,
6461
6484
key ?: string
6462
6485
) : firebase . database . Query ;
6486
+ /**
6487
+ * Creates a `Query` with the specified starting point (exclusive).
6488
+ *
6489
+ * Using `startAt()`, `startAfter()`, `endBefore()`, `endAt()` and `equalTo()`
6490
+ * allows you to choose arbitrary starting and ending points for your queries.
6491
+ *
6492
+ * The starting point is exclusive. If only a value is provided, children
6493
+ * with a value greater than the specified value will be included in the query.
6494
+ * If a key is specified, then children must have a value greater than or equal
6495
+ * to the specified value and a a key name greater than the specified key.
6496
+ *
6497
+ * @example
6498
+ * ```javascript
6499
+ * // Find all dinosaurs that are more than three meters tall.
6500
+ * var ref = firebase.database().ref("dinosaurs");
6501
+ * ref.orderByChild("height").startAfter(3).on("child_added", function(snapshot) {
6502
+ * console.log(snapshot.key)
6503
+ * });
6504
+ * ```
6505
+ *
6506
+ * @param value The value to start after. The argument
6507
+ * type depends on which `orderBy*()` function was used in this query.
6508
+ * Specify a value that matches the `orderBy*()` type. When used in
6509
+ * combination with `orderByKey()`, the value must be a string.
6510
+ * @param key The child key to start after. This argument is only allowed
6511
+ * if ordering by child, value, or priority.
6512
+ */
6513
+ startAfter (
6514
+ value : number | string | boolean | null ,
6515
+ key ?: string
6516
+ ) : firebase . database . Query ;
6463
6517
/**
6464
6518
* Returns a JSON-serializable representation of this object.
6465
6519
*
0 commit comments