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

Don't make elements after enum part of enum 'module' #1686

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Andorbal
Copy link

@Andorbal Andorbal commented Sep 9, 2019

Q A
Bug fix? yes
New feature? no
Breaking change? no
Deprecations? no
Tests added? yes
Fixed issues
License Apache-2.0

While generating a TypeScript declaration file for some protobuf messages, I came across a strange issue where no types after an enum was exported were included in the declaration file. I tracked the issue down to an issue in jsdoc where any export in a file after an enum is exported is considered to be a child of the enum. It looks like this behavior was added during a fix for #970.

The simple workaround for my case was to define the enum in a separate file, but I'd rather just fix the problem to avoid running into the same problem six months from now, forgetting the solution, and going through the process all over again!

@Andorbal Andorbal force-pushed the fix-enum-module branch 2 times, most recently from 409c000 to b8e0e80 Compare October 10, 2019 17:22
@ivan-shaban
Copy link

Hello, are there any reasons that blocks merge of this PR?

@antonstjernquist
Copy link

Merge this 🙏

@pde-rent
Copy link

pde-rent commented Dec 19, 2020

Can we please have this merged? It is 100% relevant and breaking protobuf.js pbts TypeScript from jsdoc conversion.

@AVSurfer123
Copy link

Can this be merged yet? Its passed all checks for a month now.

@lxcid
Copy link

lxcid commented Feb 2, 2021

Bumping this issue

@billkidwell
Copy link

+1

@alfrdmalr
Copy link

+1, breaking our typescript protobuf.js models as well

@jeremlb
Copy link

jeremlb commented Apr 29, 2021

Same issue here <3

@hugohutri
Copy link

+1
Can you merge this?

@courageon
Copy link

bump! pls merge :)

@jolting
Copy link

jolting commented Oct 11, 2022

I was looking at this commit.
1c99ec3

Shouldn't there be a 'module' and a 'member'? The enum shouldn't become a 'module'.
It seems like @exports tag needs a special augmentation to handle the case properly.

@deni-begaj
Copy link

Bump! Please merge 🙏

monikakalt pushed a commit to monikakalt/jsdoc that referenced this pull request Mar 17, 2023
@monikakalt
Copy link

I updated according to latest version: #2046 could this be finally merged?

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.

None yet