@firebase/firestore 4.7.5 → 4.7.6-canary.144bc3709

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -322,7 +322,15 @@ declare abstract class BasePath<B extends BasePath<B>> {
322
322
  isImmediateParentOf(potentialChild: this): boolean;
323
323
  forEach(fn: (segment: string) => void): void;
324
324
  toArray(): string[];
325
+ /**
326
+ * Compare 2 paths segment by segment, prioritizing numeric IDs
327
+ * (e.g., "__id123__") in numeric ascending order, followed by string
328
+ * segments in lexicographical order.
329
+ */
325
330
  static comparator<T extends BasePath<T>>(p1: BasePath<T>, p2: BasePath<T>): number;
331
+ private static compareSegments;
332
+ private static isNumericId;
333
+ private static extractNumericId;
326
334
  }
327
335
 
328
336
  /**
@@ -50,7 +50,15 @@ declare abstract class BasePath<B extends BasePath<B>> {
50
50
  isImmediateParentOf(potentialChild: this): boolean;
51
51
  forEach(fn: (segment: string) => void): void;
52
52
  toArray(): string[];
53
+ /**
54
+ * Compare 2 paths segment by segment, prioritizing numeric IDs
55
+ * (e.g., "__id123__") in numeric ascending order, followed by string
56
+ * segments in lexicographical order.
57
+ */
53
58
  static comparator<T extends BasePath<T>>(p1: BasePath<T>, p2: BasePath<T>): number;
59
+ private static compareSegments;
60
+ private static isNumericId;
61
+ private static extractNumericId;
54
62
  }
55
63
  /**
56
64
  * A slash-separated path for navigating resources (documents and collections)