Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andry-tino opened this issue Jan 28, 2018 · 0 comments
Open

Comments

@andry-tino
Copy link
Owner

andry-tino commented Jan 28, 2018

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:

  • Declarations of types which appear in the filter-out list will not be emitted.
  • References to types which appear in the filter-out list will be emitted as any.
  • Types whose baselist contains a type which appears in the filter-out list, will not emit that type in the baselist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant