Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(entity): remove incorrect ComparerStr type (#2584)
BREAKING CHANGE: The compare function is used in two places, neither of which expect it to be able to return a string: The first caller is the Array prototype sort function, and there it "should return a negative, zero, or positive value, depending on the arguments". The second caller does a numerical comparison with the result. Even though an id can be a string, the result of a comparison shouldn't be. BEFORE: The sortComparer types allow for a string to be returned AFTER: The sortComparer types only allow a number to be returned
- Loading branch information