Skip to content

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

Closed
Anton Gilgur (agilgur5) wants to merge 1 commit into
microsoft:v2from
agilgur5:fix-remove-emitDeclarationOnly-relatedTo
Closed

Anton Gilgur (agilgur5) wants to merge 1 commit into
microsoft:v2from
agilgur5:fix-remove-emitDeclarationOnly-relatedTo

Conversation

@agilgur5

@agilgur5 Anton Gilgur (agilgur5) commented Sep 17, 2020 •

Copy link
Copy Markdown
Contributor

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
@orta

Copy link
Copy Markdown
Contributor

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

Anton Gilgur (agilgur5) commented May 26, 2022 •

Copy link
Copy Markdown
Contributor Author

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

2 participants