Skip to content

feat: JSX type definitions for editor support#48

Merged
andresilva-cc merged 2 commits intomainfrom
feat/jsx-types
Mar 27, 2026
Merged

feat: JSX type definitions for editor support#48
andresilva-cc merged 2 commits intomainfrom
feat/jsx-types

Conversation

@andresilva-cc
Copy link
Copy Markdown
Contributor

Summary

  • Global JSX namespace with per-element HTML attribute types
  • ImgHTMLAttributes, AnchorHTMLAttributes, etc. for relevant autocomplete
  • CSSProperties via csstype (zero runtime cost)
  • declare function h/Fragment for classic jsxFactory mode
  • Type-level tests with separate tsconfig
  • TypeScript Setup docs in README and Getting Started page

Closes #43

Test plan

  • 287 tests pass
  • Type-level tests compile
  • VSCode: no red squiggles, correct per-element types on hover
  • Website builds

Global JSX namespace with per-element attribute interfaces.
CSSProperties via csstype. declare function h/Fragment for
classic jsxFactory. Type-level tests with separate tsconfig.

Closes #43
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
grafex Ready Ready Preview, Comment Mar 27, 2026 0:50am

Fix RenderResult missing scale field, browser type across all docs,
add Chromium alternative engine section to browser-setup page.
@andresilva-cc andresilva-cc merged commit 8dff748 into main Mar 27, 2026
5 checks passed
@andresilva-cc andresilva-cc deleted the feat/jsx-types branch March 27, 2026 00:52
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.

feat: ship JSX type definitions for editor support

1 participant