Skip to content

Commit

Permalink
fix(data): make entity param partial when is not optimistic (#2899)
Browse files Browse the repository at this point in the history
Closes #2870
  • Loading branch information
yharaskrik committed Jan 30, 2021
1 parent 251b83a commit bb70e6c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ export class EntityCollectionServiceBase<
* @returns Observable of the entity
* after server reports successful save or the save error.
*/
add(
entity: Partial<T>,
options: Omit<EntityActionOptions, 'isOptimistic'> & { isOptimistic: true }
): Observable<T>;
add(entity: T, options?: EntityActionOptions): Observable<T> {
return this.dispatcher.add(entity, options);
}
Expand Down

0 comments on commit bb70e6c

Please sign in to comment.