-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: export JSX types from jsx-runtime (#9501)
* feat: export JSX types from jsx-runtime * fix: i wont make the same mistakes three times * chore: changeset
- Loading branch information
1 parent
4660aaa
commit eb36e95
Showing
3 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
Export JSX namespace from `astro/jsx-runtime` for language tooling to consume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Q: Why this file? | ||
// A: Our language tooling needs to access the JSX types from `astro/jsx-runtime`, due to TS limitations, however we | ||
// can't import `astro-jsx` types inside the actual `jsx-runtime/index.js` file due to circular dependency issues. | ||
import './astro-jsx.js'; | ||
export * from './dist/jsx-runtime/index.js'; | ||
export import JSX = astroHTML.JSX; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters