Skip to content

Commit 1ea166a

Browse files
authored
fix(firestore, types): string is also correct type for orderBy (#7570)
1 parent 55c1c2c commit 1ea166a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/lib/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ export namespace FirebaseFirestoreTypes {
12881288
* @param fieldPath The field to sort by. Either a string or FieldPath instance.
12891289
* @param directionStr Optional direction to sort by (`asc` or `desc`). If not specified, order will be ascending.
12901290
*/
1291-
orderBy(fieldPath: keyof T | FieldPath, directionStr?: 'asc' | 'desc'): Query<T>;
1291+
orderBy(fieldPath: keyof T | string | FieldPath, directionStr?: 'asc' | 'desc'): Query<T>;
12921292

12931293
/**
12941294
* Creates and returns a new Query that starts after the provided document (exclusive). The start

0 commit comments

Comments
 (0)