GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — rax: fix JSX RaxFragment usage/export by sandersn · Pull Request #70782 · DefinitelyTyped/DefinitelyTyped Conversation
Contributor
Typescript 5.7 will fail on uses of RaxFragment also needs to have an exported value. I wasn't sure what to use here so I copied preact, since preact is used in the Typescript handbook as an example: export const RaxFragment: FunctionComponent<{}> Notably, though, the preact source has a comment indicating that they're not sure of the correct type either. Here is the Typescript 5.7 PR that made this error appear:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsTypescript 5.7 will fail unless usage of RaxFragment is explicit, with an import of it and a `/** @jsxFrag RaxFragment */` pragma at the top of the file. This PR adds that. RaxFragment also needs to have an exported value. I wasn't sure what to use here so I copied preact, since preact is used in the Typescript handbook as an example: ```ts export const RaxFragment: FunctionComponent<{}> ``` Notably, though, the preact source has a comment indicating that *they're* not sure of the correct type either. Here is the Typescript 5.7 PR that made this error appear: microsoft/TypeScript#59933
|
There was an error while loading. Please reload this page.
|
@sandersn Thank you for submitting this PR! This is a live comment that I will keep updated. 1 package in this PRCode ReviewsBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it. You can test the changes of this PR in the Playground. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 70782,
"author": "sandersn",
"headCommitOid": "e61f17605e7ac7d1a60228e234217e9db8ecd170",
"mergeBaseOid": "24a32d6bec7e18c6a426b4ae63b1f2b508874184",
"lastPushDate": "2024-10-03T20:56:41.000Z",
"lastActivityDate": "2024-10-03T22:05:08.000Z",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "rax",
"kind": "edit",
"files": [
{
"path": "types/rax/index.d.ts",
"kind": "definition"
},
{
"path": "types/rax/test/hooks.tsx",
"kind": "test"
}
],
"owners": [
"solojiang",
"chenjun1011",
"imsobear"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [],
"mainBotCommentID": 2392321623,
"ciResult": "pass"
} |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🔔 @SoloJiang @chenjun1011 @imsobear — please review this PR in the next few days. Be sure to explicitly select |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@sandersn The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! Note: builds that are failing do not end up on the list of PRs for the DT maintainers to review. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Though perhaps `@jsxFrag` should be allowed by the rule.
FormattingThe following files are not formatted:
Consider running |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.