We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
C# ValueTuple type is neither recognized in tst file nor Typewriter output.
input C# file:
[GenerateAsTypeScriptClass] public class MyDTO { public (string a, string b) P { get; set; } }
generated TypeScript with default tst file:
class MyDTO { public p: }
When I change the tst file into
${ using Typewriter.Extensions.Types; string TypeMap2(Property property) { var type = property.Type; return type.FullName+ ";"; } } $Classes([GenerateAsTypeScriptClass])[ class $Name { $Properties[public $name: $TypeMap2][; ] } ]
I get that ValueTuple isn't recognized even in the tst file, with the following output:
class MyDTO { public p: System.; }
The text was updated successfully, but these errors were encountered:
Seems this got added in 1.16 and not closed.
And I cannot find in the docs what the generated output will be.
Sorry, something went wrong.
1.16.0 adds support for rendering ValueTuples in vs 2017, but it's still not possible to use them in Typewriter templates...
The output is an anonymous object, e.g. public (string a, int b) MyTuple { get; set, } will render MyTuple: { a: string, b: number };
public (string a, int b) MyTuple { get; set, }
MyTuple: { a: string, b: number };
I'm getting TupleValue in my generated TS file and fix it by overwriting it.
No branches or pull requests
C# ValueTuple type is neither recognized in tst file nor Typewriter output.
input C# file:
generated TypeScript with default tst file:
When I change the tst file into
I get that ValueTuple isn't recognized even in the tst file, with the following output:
The text was updated successfully, but these errors were encountered: