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

fix: allowJs and checkJs shouldn't be relatedTo emitDeclarationOnly #1098

Conversation

agilgur5
Copy link
Contributor

@agilgur5 agilgur5 commented Sep 17, 2020

Description

Tags

Found while writing #1095 / #971

These relationships seem to have been originally added in #163 here

Review Notes

If this was an intentional relatedTo, feel free to close this. If so, then a link to the DTS/JS doc should probably be added from the Reference in order to explain this relationship instead.

- remove emitDeclarationOnly from their relatedTo and group them
  separately from declaration by adding a newline

- these only seem quite loosely related, only by the DTS/JS doc
  - c.f. https://github.com/microsoft/TypeScript-Website/blob/2a57f7116b72217e47550657826cd650d258ba20/packages/documentation/copy/en/javascript/Creating%20DTS%20files%20From%20JS.md#L46
  - the relationship is not even mentioned in their notes or otherwise
    in the Reference, which was very confusing to me
  - the commit that adds this relationship seems to put
    `emitDeclarationOnly` elsewhere too, so maybe this was a mistake?
    - c.f. microsoft@4627aa3#diff-a912c6af3a16bf4288093c1264955bc6R75
@agilgur5 agilgur5 force-pushed the fix-remove-emitDeclarationOnly-relatedTo branch from e08b0e2 to 3af3a1b Compare September 17, 2020 05:45
@orta
Copy link
Contributor

orta commented Sep 18, 2020

Yeah, this one I'd like to keep - I think they're related in the sense that I'd want people using a tsconfig with JS to know that they can get TS to emit d.ts files for them and that this flag is kinda essential in allowing that to happen.

@agilgur5
Copy link
Contributor Author

agilgur5 commented May 26, 2022

Followed up on this (like ~2 years later, my to-do list really stretches out...) with #2395 to implement the alternative of linking to the DTS/JS doc instead to explain the relationship

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.

2 participants