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

Add mechanism to extend the JSX namespace for custom elements (and attributes) #2807

Closed
wants to merge 4 commits into from

Conversation

SacDeNoeuds
Copy link
Contributor

Hey folks!

I would like to start by thanking you for this amazing package 🙏. To be honest, so far I have always avoided using TypeDoc only because I never found a theme that I liked, so I figured I'd build one!
And here is ➡️ https://github.com/SacDeNoeuds/typedoc-unhoax-theme/

I tried covering as much stuff as I could, if you find anything that needs updating I'm all ears 😊

Anyway, in the process of making the theme, I wanted to use the (quite new) popover API and figured I could not extend the JSX namespace, hence this PR.

The content:

  • Exposing the JsxHtmlGlobalProps interface under JSX.IntrinsicAttributes.
  • Documenting how to add your custom elements/attributes as plugin developer.
  • Adding the popover attributes to the JsxHtmlGlobalProps interface.

I hope it helps.

Comment on lines +116 to +117
namespace JSX {
namespace JSX {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not a typo but the result of a test

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Dec 12, 2024

Thanks!

I squashed locally, so apparently GitHub didn't realized I merged... 993c0f5

@Gerrit0 Gerrit0 closed this Dec 12, 2024
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