FluffySpoon.JavaScript.CSharpToTypeScriptGenerator
FluffySpoon.JavaScript.CSharpToTypeScriptGenerator copied to clipboard
Abstract class not parsed and convert the same way it was in typescript-cs-poco
Before I was able to get this...
``namespace test { using JsonConverters; using Newtonsoft.Json;
[JsonConverter(typeof(DerivedClassJsonConverter))]
[DerivedType(DerivedType = typeof(And))]
[DerivedType(DerivedType = typeof(CloseParen))]
[DerivedType(DerivedType = typeof(Constraint))]
[DerivedType(DerivedType = typeof(OpenParen))]
[DerivedType(DerivedType = typeof(Or))]
[DerivedType(DerivedType = typeof(Parens))]
public abstract class ConstraintBase
{
}
}``
to convert to...
export interface ConstraintBase { }
Now it just omits it all together. These are the default option I have set...
const options = { defaults: { namespaceEmitOptions: { skip: true }, classEmitOptions: { declare: false } } };