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

resolves #111 preserve comment on enum members #115

Closed

Conversation

ggrossetie
Copy link
Contributor

resolves #111

@ggrossetie ggrossetie force-pushed the issue-111-enum-comment branch from 4de43dd to f4b1ee0 Compare January 7, 2020 15:36
{
const enumProperties = (doclet['properties'] as Array<IDocletBase>);
// @ts-ignore
const enumMembers = node['members'];
Copy link
Contributor Author

@ggrossetie ggrossetie Jan 7, 2020

Choose a reason for hiding this comment

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

Not sure if there's a safe way to call members on ts.Node. I tried to cast it using as but it's not working.
Without the @ts-ignore directive, I get the following warning/error:

TS7017: Element implicitly has an 'any' type because type 'Node' has no index signature.

@ggrossetie ggrossetie force-pushed the issue-111-enum-comment branch from f4b1ee0 to 47f4449 Compare January 7, 2020 15:39
@englercj
Copy link
Owner

Closing this in favor of #116. Let me know if there are any changes there you think should be made before I merge it in.

Thanks!

@englercj englercj closed this Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enum comment on properties should be preserved
2 participants