-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
fix(types): add key to IntrinsicAttributes #3474
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3474 +/- ##
=======================================
Coverage 95.58% 95.58%
=======================================
Files 155 155
Lines 9357 9357
Branches 2735 2752 +17
=======================================
Hits 8944 8944
Misses 413 413 ☔ View full report in Codecov by Sentry. |
Hi @codehz Thank you for the PR. I just wanted to confirm it with you. Currently, it does not throw a type error on my machine. Is this what you're pointing out? |
and the Window is defined as function Window({
id,
title,
state,
zIndex,
}: {
id: WindowId;
title: WindowTitleState;
state: WindowState;
zIndex: number;
}) {...
} |
@yusukebe post in typescript playground |
Thanks @codehz ! Indeed, if we treat hono/jsx as the same as React, we should add the Initially, hono/jsx was developed as non-React JSX, which does not support @usualoma, what do you think of this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* add key to IntrinsicAttributes * fix format error
make
arr.map(x => <CustomComponent key={x.id} />)
not emit type errorThe author should do the following, if applicable
bun run format:fix && bun run lint:fix
to format the code