From 1ea166aa1f06d9c332eab150cd2049a3cdd6c472 Mon Sep 17 00:00:00 2001 From: Dav Date: Wed, 24 Jan 2024 02:24:22 +1100 Subject: [PATCH] fix(firestore, types): string is also correct type for orderBy (#7570) --- packages/firestore/lib/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/firestore/lib/index.d.ts b/packages/firestore/lib/index.d.ts index ce119dfe5e..cdc0459547 100644 --- a/packages/firestore/lib/index.d.ts +++ b/packages/firestore/lib/index.d.ts @@ -1288,7 +1288,7 @@ export namespace FirebaseFirestoreTypes { * @param fieldPath The field to sort by. Either a string or FieldPath instance. * @param directionStr Optional direction to sort by (`asc` or `desc`). If not specified, order will be ascending. */ - orderBy(fieldPath: keyof T | FieldPath, directionStr?: 'asc' | 'desc'): Query; + orderBy(fieldPath: keyof T | string | FieldPath, directionStr?: 'asc' | 'desc'): Query; /** * Creates and returns a new Query that starts after the provided document (exclusive). The start