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

feat: add link to "DTS from JS" doc in allowJs in reference #2395

Merged

Conversation

agilgur5
Copy link
Contributor

Summary

In allowJs in the TSConfig Reference, link out to the "DTS from JS" doc in the handbook to explain the relationship to emitDeclarationOnly.

Details

  • allowJs (and checkJs) are marked as relatedTo emitDeclarationOnly in the reference, yet this relationship is never explained in the reference itself

    • as such, link out to the "DTS from JS" doc in the handbook, which explains the relationship and how to use them together in detail
    • hopefully this clarifies things for JS users who may be especially unfamiliar with the various tsconfig options
  • related to an old, closed PR of mine (fix: allowJs and checkJs shouldn't be relatedTo emitDeclarationOnly #1098) where I tried to remove the relatedTo emitDeclarationOnly

    • the alternative I listed there was to link to the "DTS from JS" doc, but that was never implemented, so doing that now!

Review Notes

Let me know if you'd prefer the text/copy to be a bit different.
In particular, if in-line links are not preferred, then the link could be moved to a second sentence that says "See the handbook for more details" instead.

- `allowJs` (and `checkJs`) are marked as `relatedTo`
  `emitDeclarationOnly` in the reference, yet this relationship is never
  explained in the reference itself
  - as such, link out to the "DTS from JS" doc in the handbook, which
    explains the relationship and how to use them together in detail
  - hopefully this clarifies things for JS users who may be especially
    unfamiliar with the various tsconfig options

- related to an old, closed PR of mine where I tried to remove the
  `relatedTo` `emitDeclarationOnly`
  - the alternative I listed there was to link to the "DTS from JS" doc,
    but that was never implemented, so doing that now!
@jakebailey jakebailey closed this May 18, 2023
@jakebailey jakebailey reopened this May 18, 2023
@jakebailey jakebailey enabled auto-merge (squash) May 18, 2023 20:12
@jakebailey jakebailey merged commit 4b665c0 into microsoft:v2 May 18, 2023
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