-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): type definition of Dataset.reduce (#2774)
Fixes #2773 I'm seeing type errors and test failures in `./test/core/sitemap_request_list.test.ts` both before and after my change. This PR currently doesn't add tests to check that types resolve correctly. In the `reduce() uses first value as memo if no memo is provided` test, the result from reduce was previously inferred to be `any`, and is now inferred to be `Dictionary`. Adding a type annotation doesn't help catch this change as implicit any is allowed. --------- Co-authored-by: Erik Funder Carstensen <[email protected]>
- Loading branch information
Showing
2 changed files
with
65 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters