-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript-related updates #2231
Conversation
Thanks a lot! There seems to be movement in the ts2fable repo too so hopefully we can improve the (bidirectional) Typescript/Fable interop. BTW, would it be possible to write a short blog post explaining the Typescript feature from the user's perspective (how it works, when it makes sense to use it)? |
@alfonsogarciacaro I'm not sure there is much to explain, it adds types when the |
For example, when trying the feature I've noticed it needs the fable-library files compiled as Typescript. Should we add them to the About the REPL, it's a bit complicated. Should we?
|
@alfonsogarciacaro As far as progress goes, we were able to compile You can try it to see where we're at by building the
the output goes to the
|
Awesome, thanks a lot for the info! Ok, I will try to push a Fable 3 repl and add Typescript output as option so users can start playing with it. BTW, if it's not too much to ask, would it be possible to rebase/merge your |
@alfonsogarciacaro I'll take a look, there are quite a few changes and files moving around in |
Thanks @ncave! If it's becoming too hard to maintain the
|
@alfonsogarciacaro |
@alfonsogarciacaro I've rebased the Same instructions as before:
Binaries will be in |
Various TypeScript-related improvements:
Map
andWeakMap
interface inFable.Core
.Option
instead ofNullable
nodes inFSharpMap
andFSharpSet
(more idiomatic, little or no change in JS).FSharpMap
,FSharpSet
,Dictionary
andHashSet
now implement ES6Map
andSet
interfaces directly.Iterable
toIterableIterator
for better integration withMap
andSet
interfaces.baseExpr
type.extends
printing for generic types.${outDir}
in them.Types
cleanup.