Skip to content
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

Compile to Typescript? #217

Open
goswinr opened this issue Jan 7, 2025 · 1 comment
Open

Compile to Typescript? #217

goswinr opened this issue Jan 7, 2025 · 1 comment

Comments

@goswinr
Copy link

goswinr commented Jan 7, 2025

Should Toth.Json compile with dotnet fable --lang typescript to valid typescript?
I currently get this error when invoking tsc on the result. (fable 5.0.0-alpha.4)
image
If this is complicated to fix, I would also be happy to use a less generic workaround like sugested in #202 in my on fork.

Background: I am trying to compile my F# to TS only, so that it integrates nicely into a larger Angular App.
My domain model runs on .NET and Browser. Yes, Fable is amazing !
And Thot.Json allows me to de- and serialize on .NET and Browser with the same code. Amazing!

@MangelMaxime
Copy link
Contributor

The issue is not with Thoth.Json but with Fable compilation.

So once, we fix Fable compilation both Thoth.Json and Thoth.Json.Core should work with TypeScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants