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

[gen-typescript-declarations] excludeIdentifiers now applies to properties and methods. #642

Merged
merged 3 commits into from
Aug 14, 2018

Conversation

aomarks
Copy link
Member

@aomarks aomarks commented Aug 14, 2018

No description provided.

@@ -700,7 +700,8 @@ class TypeGenerator {
ts.Property[] {
const tsProperties = <ts.Property[]>[];
for (const property of analyzerProperties) {
if (property.inheritedFrom || property.privacy === 'private') {
if (property.inheritedFrom || property.privacy === 'private' ||
this.excludeIdentifiers.includes(property.name)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a good idea to convert excludeIdentifiers into a set in the constructor, just in case we end up with a decent sized list.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@aomarks aomarks changed the base branch from gen-tsd-bare-module-specifiers to master August 14, 2018 21:33
@aomarks aomarks force-pushed the gen-tsd-exclude-prop-method branch from 836e2b9 to ec494f1 Compare August 14, 2018 21:50
@aomarks aomarks merged commit 7dbda4a into master Aug 14, 2018
@aomarks aomarks deleted the gen-tsd-exclude-prop-method branch August 14, 2018 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants