-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transducers): fix #310, update flatten/flattenWith
- fix `flatten()`/`flattenWith()` return types - update generics to allow specifying explicit result type, but use new `DeepArrayValue<A>` mapped type as default - update `flattenWith()` predicate arg type to `any` since current restriction on top-level input type was (potentially) wrong for deeper levels. Also lift restriction and update pred's return type to `MaybeIterable<any>` (for same reason).
- Loading branch information
1 parent
a309fac
commit bfbd726
Showing
2 changed files
with
19 additions
and
16 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