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

Tooling for JavaScript interop #16555

Closed
danroth27 opened this issue Feb 5, 2018 · 7 comments
Closed

Tooling for JavaScript interop #16555

danroth27 opened this issue Feb 5, 2018 · 7 comments
Labels

Comments

@danroth27
Copy link
Member

@danroth27 danroth27 commented Feb 5, 2018

  • Tooling to generate strongly typed C# wrappers for JavaScript libraries (ex based on TypeScript definitions)
@RehanSaeed

This comment has been minimized.

Copy link

@RehanSaeed RehanSaeed commented Feb 7, 2018

Could you also use JSDoc to achieve the same thing? I believe TypeScript does this to infer some basic type information.

@grahamehorner

This comment has been minimized.

@grahamehorner

This comment has been minimized.

@ebekker

This comment has been minimized.

Copy link
Contributor

@ebekker ebekker commented Feb 12, 2018

Unfortunately, the Retyped tooling is not OSS at this time, so not much can be leveraged there. But Fable has support, and although it's F#, there's pby lots that can be adapted from there: https://github.com/fable-compiler/ts2fable

@grahamehorner

This comment has been minimized.

Copy link

@grahamehorner grahamehorner commented Feb 12, 2018

@ebekker I’ve connected with the developers of Retyped and they are moving to open sourcing the tools and resulting generated c# code, they have replied with interest in blazor

@migueldeicaza

This comment has been minimized.

Copy link
Member

@migueldeicaza migueldeicaza commented Feb 13, 2018

This is the module where we started work on generating C# types for JavaScript APIs based on DefinitelyTyped:

https://github.com/mono/TsToCSharp

@danroth27

This comment has been minimized.

Copy link
Member Author

@danroth27 danroth27 commented Apr 20, 2018

Closing as this is being handled by https://github.com/mono/TsToCSharp

@danroth27 danroth27 closed this Apr 20, 2018
@mkArtakMSFT mkArtakMSFT transferred this issue from dotnet/blazor Oct 27, 2019
@msftbot msftbot bot locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.