Skip to content

docs: Alter TS JSX namespace examples & how to extend our types#1337

Merged
rschristian merged 3 commits intomasterfrom
docs/ts-jsx-namespace-and-extending
Sep 17, 2025
Merged

docs: Alter TS JSX namespace examples & how to extend our types#1337
rschristian merged 3 commits intomasterfrom
docs/ts-jsx-namespace-and-extending

Conversation

@rschristian
Copy link
Member

Few things:

  • With v11 removing unrelated types from the JSX namespace, we should tell users to start importing those types from the preact namespace now that they're available in the latest v10 release.
  • Expounds the English docs to differentiate extending attributes for all elements (HTMLAttributes) vs per-element interfaces (HeadingHTMLAttributes)
  • Fixes bad prettier change in our v11 docs, it re-indents a comment that is meant to align with an error. Missed in 3f44653

@rschristian rschristian force-pushed the docs/ts-jsx-namespace-and-extending branch from d641774 to 179c2c5 Compare September 17, 2025 18:37
@rschristian rschristian merged commit 15a1971 into master Sep 17, 2025
5 checks passed
@rschristian rschristian deleted the docs/ts-jsx-namespace-and-extending branch September 17, 2025 18:38
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