You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
13 return R.pipe(
~~~~~~~~~~~~~~
14 R.evolve(aggregateSanitation),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 R.props(["domain", "name", "id"])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 )(aggregate);
~~~~~~~~~~~~~~~
src/impl/file-persistence.ts(13,3): error TS2322: Type '{}[]' is not assignable to type 'string[]'.
Type '{}' is not assignable to type 'string'.
I solved with casting, but I was wondering whether there is a better way to fix it?
Thanks a lot for typing ramda!
The text was updated successfully, but these errors were encountered:
Yeah, it's our top issue, minimum repro being R.pipe(R.identity) (reason: presence of generics it does not yet have the info to resolve, instead yielding {}). A fix would pretty much require TypeScript to better prioritize this. Feel free to upvote / voice your support over there, for what it's worth.
Hello!
I got this:
And error:
I solved with casting, but I was wondering whether there is a better way to fix it?
Thanks a lot for typing
ramda
!The text was updated successfully, but these errors were encountered: