Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(data): type overloaded add for is optimistic true | undefined (#2906
) TypeScript only recognizes the overloads as method signatures when being overloaded not the actual implementation, added overload for the case where isOptimistic is true or undefined (default for entity). This will allow for the following: `.add(entityWithoutId, { isOptimistic: false })` `.add(entityWithId, { isOptimistic: true })` `.add(entityWithId, { // any other options without whatever settings and no explicit value for isOptimistic })` `.add(entityWithId)`
- Loading branch information