andry-tino / Rosetta

Toolset for migrating your codebase from C# to TypeScript
http://antino-enlad.cloudapp.net:8080/job/Rosetta/
GNU General Public License v3.0
24 stars 9 forks source link

Implement a filter-out strategy for types when generating definitions #56

Open andry-tino opened 6 years ago

andry-tino commented 6 years ago

The filter-out strategy should remove the definition of those types and replace with any any reference to them. Example:

public class FilteredOutClass {
}
public class MyClass1 {
  public FilteredOutClass myMember;
}

Gets translated into:

export class MyClass1 {
  public myMember: any;
}

Details

In details, this is how the mechanism should work: