Skip to content

Commit c65fe3a

Browse files
Cleanup
1 parent e0311c2 commit c65fe3a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages/firestore/src/api/database.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ import {
119119
DocumentData,
120120
DocumentReference as PublicDocumentReference,
121121
DocumentSnapshot as PublicDocumentSnapshot,
122+
FieldPath as PublicFieldPath,
122123
FirebaseFirestore as PublicFirestore,
123124
FirestoreDataConverter,
124125
GetOptions,
@@ -823,15 +824,15 @@ export class DocumentReference<T = DocumentData>
823824

824825
update(value: UpdateData): Promise<void>;
825826
update(
826-
field: string | ExternalFieldPath,
827+
field: string | PublicFieldPath,
827828
value: unknown,
828829
...moreFieldsAndValues: unknown[]
829830
): Promise<void>;
830831
update(
831832
fieldOrUpdateData:
832833
| string
833-
| ExternalFieldPath
834-
| Compat<ExternalFieldPath>
834+
| PublicFieldPath
835+
| Compat<PublicFieldPath>
835836
| UpdateData,
836837
value?: unknown,
837838
...moreFieldsAndValues: unknown[]
@@ -1082,7 +1083,7 @@ export class DocumentSnapshot<T = DocumentData>
10821083
}
10831084

10841085
get(
1085-
fieldPath: string | ExternalFieldPath,
1086+
fieldPath: string | PublicFieldPath,
10861087
options: PublicSnapshotOptions = {}
10871088
): unknown {
10881089
if (this._document) {
@@ -1558,7 +1559,7 @@ export class Query<T = DocumentData> implements PublicQuery<T> {
15581559
}
15591560

15601561
where(
1561-
field: string | ExternalFieldPath,
1562+
field: string | PublicFieldPath,
15621563
opStr: WhereFilterOp,
15631564
value: unknown
15641565
): PublicQuery<T> {
@@ -1580,7 +1581,7 @@ export class Query<T = DocumentData> implements PublicQuery<T> {
15801581
}
15811582

15821583
orderBy(
1583-
field: string | ExternalFieldPath,
1584+
field: string | PublicFieldPath,
15841585
directionStr?: OrderByDirection
15851586
): PublicQuery<T> {
15861587
let direction: Direction;

packages/firestore/src/api/user_data_reader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ function validatePlainObject(
792792
*/
793793
export function fieldPathFromArgument(
794794
methodName: string,
795-
path: unknown,
795+
path: string | PublicFieldPath | Compat<PublicFieldPath>,
796796
targetDoc?: DocumentKey
797797
): InternalFieldPath {
798798
// If required, replace the FieldPath Compat class with with the firestore-exp

0 commit comments

Comments
 (0)