TypeGen by Jacek Burzynski

<PackageReference Include="TypeGen" Version="2.3.3" />

 ClassOrInterfaceSpecBuilder<T, TDerived>

public abstract class ClassOrInterfaceSpecBuilder<T, TDerived> : TypeSpecBuilder<T, TDerived> where TDerived : ClassOrInterfaceSpecBuilder<T, TDerived>
Base class for class and interface spec builders
public TDerived CustomBase(string base = null, string importPath = null, string originalTypeName = null, bool isDefaultExport = false)

Specifies custom base for the type (equivalent of TsCustomBaseAttribute)

public TDerived DefaultExport(bool enabled = true)

Indicates whether to use default export for the generated TypeScript type (equivalent of TsDefaultExportAttribute)

public TDerived DefaultTypeOutput(string outputDir)

Specifies the default type output path for the selected member (equivalent of TsDefaultTypeOutputAttribute)

public TDerived DefaultValue(string defaultValue)

Specifies default value for the selected member (equivalent of TsDefaultValueAttribute)

public TDerived Ignore()

Marks selected member as ignored (equivalent of TsIgnoreAttribute)

public TDerived IgnoreBase()

Indicates whether to ignore base class declaration for type (equivalent of TsIgnoreBaseAttribute)

public TDerived MemberName(string name)

Specifies name for the selected member (equivalent of TsMemberNameAttribute)

public TDerived NotNull()

Marks selected member as not null (equivalent of TsNotNullAttribute)

public TDerived NotReadonly()

Marks selected member as not readonly (equivalent of TsNotReadonlyAttribute)

public TDerived NotUndefined()

Marks selected member as not undefined (equivalent of TsNotUndefinedAttribute)

public TDerived Null()

Marks selected member as null (equivalent of TsNullAttribute)

public TDerived Readonly()

Marks selected member as readonly (equivalent of TsReadonlyAttribute)

public TDerived Type(string typeName, string importPath = null, string originalTypeName = null, bool isDefaultExport = false)

Specifies custom type for the selected member (equivalent of TsTypeAttribute)

public TDerived Type(TsType tsType)

Specifies custom type for the selected member (equivalent of TsTypeAttribute)

public TDerived Undefined()

Marks selected member as undefined (equivalent of TsUndefinedAttribute)