@@ -119,6 +119,7 @@ import {
119
119
DocumentData ,
120
120
DocumentReference as PublicDocumentReference ,
121
121
DocumentSnapshot as PublicDocumentSnapshot ,
122
+ FieldPath as PublicFieldPath ,
122
123
FirebaseFirestore as PublicFirestore ,
123
124
FirestoreDataConverter ,
124
125
GetOptions ,
@@ -823,15 +824,15 @@ export class DocumentReference<T = DocumentData>
823
824
824
825
update ( value : UpdateData ) : Promise < void > ;
825
826
update (
826
- field : string | ExternalFieldPath ,
827
+ field : string | PublicFieldPath ,
827
828
value : unknown ,
828
829
...moreFieldsAndValues : unknown [ ]
829
830
) : Promise < void > ;
830
831
update (
831
832
fieldOrUpdateData :
832
833
| string
833
- | ExternalFieldPath
834
- | Compat < ExternalFieldPath >
834
+ | PublicFieldPath
835
+ | Compat < PublicFieldPath >
835
836
| UpdateData ,
836
837
value ?: unknown ,
837
838
...moreFieldsAndValues : unknown [ ]
@@ -1082,7 +1083,7 @@ export class DocumentSnapshot<T = DocumentData>
1082
1083
}
1083
1084
1084
1085
get (
1085
- fieldPath : string | ExternalFieldPath ,
1086
+ fieldPath : string | PublicFieldPath ,
1086
1087
options : PublicSnapshotOptions = { }
1087
1088
) : unknown {
1088
1089
if ( this . _document ) {
@@ -1558,7 +1559,7 @@ export class Query<T = DocumentData> implements PublicQuery<T> {
1558
1559
}
1559
1560
1560
1561
where (
1561
- field : string | ExternalFieldPath ,
1562
+ field : string | PublicFieldPath ,
1562
1563
opStr : WhereFilterOp ,
1563
1564
value : unknown
1564
1565
) : PublicQuery < T > {
@@ -1580,7 +1581,7 @@ export class Query<T = DocumentData> implements PublicQuery<T> {
1580
1581
}
1581
1582
1582
1583
orderBy (
1583
- field : string | ExternalFieldPath ,
1584
+ field : string | PublicFieldPath ,
1584
1585
directionStr ?: OrderByDirection
1585
1586
) : PublicQuery < T > {
1586
1587
let direction : Direction ;
0 commit comments