From 32d35b53e4bd403c158326dd9cd00d381ad3921d Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Thu, 14 Mar 2019 08:30:05 +0800 Subject: [PATCH] Using Partial for QueryOptions --- dev/src/reference.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/dev/src/reference.ts b/dev/src/reference.ts index aaebe4fe4..c7eaf000b 100644 --- a/dev/src/reference.ts +++ b/dev/src/reference.ts @@ -907,18 +907,7 @@ export class QueryOptions { * Returns the union of the current and the provided options. * @private */ - with(settings: { - parentPath?: ResourcePath; - collectionId?: string; - allDescendants?: boolean; - fieldFilters?: FieldFilter[]; - fieldOrders?: FieldOrder[]; - startAt?: QueryCursor; - endAt?: QueryCursor; - limit?: number; - offset?: number; - projection?: api.StructuredQuery.IProjection; - }): QueryOptions { + with(settings: Partial): QueryOptions { return new QueryOptions( coalesce(settings.parentPath, this.parentPath)!, coalesce(settings.collectionId, this.collectionId)!,