Skip to content

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

@rodyager123

Description

@rodyager123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions