Skip to content

Commit

Permalink
fix(data): remove strict typing for optimistic false (#3020)
Browse files Browse the repository at this point in the history
Additional overload for `.add()` on NgRx Data Service causes issue when passing in `boolean` to `isOptimistic`. Remove overload as it should not be needed. Resolves #2928
  • Loading branch information
yharaskrik authored May 15, 2021
1 parent 045c4c3 commit 3b565b4
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ export class EntityCollectionServiceBase<
entity: Partial<T>,
options: EntityActionOptions & { isOptimistic: false }
): Observable<T>;
add(
entity: T,
options?: EntityActionOptions & { isOptimistic?: true }
): Observable<T>;
add(entity: T, options?: EntityActionOptions): Observable<T> {
return this.dispatcher.add(entity, options);
}
Expand Down

0 comments on commit 3b565b4

Please sign in to comment.