FluffySpoon.JavaScript.CSharpToTypeScriptGenerator icon indicating copy to clipboard operation
FluffySpoon.JavaScript.CSharpToTypeScriptGenerator copied to clipboard

Abstract class not parsed and convert the same way it was in typescript-cs-poco

Open rodyager123 opened this issue 6 years ago • 0 comments

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 } } };

rodyager123 avatar Sep 05 '19 19:09 rodyager123