Open robotlolita opened 7 years ago
Well, overloaded functions on arrays will have to be replaced by static arity functions. Too many silent type errors from TypeScript otherwise :/
2.1.0-alpha4
: fixed .apply
types and added missing definitions for Maybe/Result/Validation. Overloaded definitions were removed, though.
3.0.0-alpha5
adds fixed-arity versions of the previously-overloaded functions. More details coming up in a blog post later :>
3.0.1-ts fixes .fold and .fromNullable in Maybe
Semigroup types don't work with TS 2.8.1
This PR tracks the work on TypeScript typings (#65). These will work with Folktale 2.x. There's a separate branch to rewrite Folktale in TypeScript (#115). That'll be a breaking change (using ES6 modules), and thus a new major version. TypeScript in Folktale will likely be released early 2018.
Current status
v3.0.1-ts is available on the
tstypes
channel:npm install folktale@tstypes
[ ]
adt (note that adt fundamentally can't have useful types)[X]
concurrency[X]
conversions[/]
core (missingcurry
&partialize
)[ ]
fantasy-land[/]
maybe[/]
result[/]
validation[/]
indicates partial support,[X]
indicates full support.