F# in a TypeScript Environment - Whats the state of Integration? #2853
-
Hello everyone. I'm interested in F# and would like to get some opinions on it's "friendliness" within TypeScript environments. Concretely:
I have read around here and saw that typescript is not really on the radar (?). It's not clear to me if that just means compiling to typescript is not supported (which is fine) or if there is even an issue providing typescript solid definition files for integration (??). Thank you for your point of view. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @D1no! Sorry for the late reply. There's currently some support for Typescript compilation using the |
Beta Was this translation helpful? Give feedback.
Hi @D1no! Sorry for the late reply. There's currently some support for Typescript compilation using the
--typescript
flag but it's still experimental and I think it still needs to work to be usable (I haven't personally worked in the feature). By default Fable doesn't output .d.ts type declarations. A while ago I wrote a plugin to generate a .d.ts declaration, originally intended to interact with Svelte, but it can be easily adapted to more general uses. I can do it if you're open to try it and report any bugs you notice.