Reputation: 2109
Is there a way of converting typescript definitions to C#, for use in Bridge?
Like if I have:
class L
{
value():string;
}
it would convert to:
class L
{
public string Value ();
}
Upvotes: 3
Views: 9759
Reputation: 188
You can try TypedocConverter, which can be used as a TypeScript to C# converter.
https://github.com/hez2010/TypedocConverter
Upvotes: 1
Reputation: 276255
Is there a way of converting typescript definitions to C#
This is a non-goal of the TypeScript team so any solution will have to come from the community. A quick search shows exactly what you are asking for : https://github.com/michaelcheers/TypeScriptToCS
Upvotes: 3