Skip to content

Commit 1620df9

Browse files
authored
fix(data): make options optional on add with partial (#3043)
* fix(data): make options optional on add with partial * revert: fix(data): make options optional on add with partial This reverts commit cc3d829 * fix(data): add overload to add method
1 parent cb7cd72 commit 1620df9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/data/src/entity-services/entity-collection-service-base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export class EntityCollectionServiceBase<
145145
entity: Partial<T>,
146146
options: EntityActionOptions & { isOptimistic: false }
147147
): Observable<T>;
148+
add(entity: T, options?: EntityActionOptions): Observable<T>;
148149
add(entity: T, options?: EntityActionOptions): Observable<T> {
149150
return this.dispatcher.add(entity, options);
150151
}

0 commit comments

Comments
 (0)