-
Notifications
You must be signed in to change notification settings - Fork 255
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
'required' attribute set to false when intersection used #339
Comments
I have found a workaround:
|
Another oddity, when
In this instance I would get However, using |
There was no activity for a long time. Closing this issue as obsolete. In case it is still valid, please, open a new one. |
I could be wrong but I believe the reason for this is that The fix would be in the order of your props: type Props = HTMLAttributes<HTMLDivElement> & {
children: ReactNode;
title: string;
}; |
There was no activity for a long time. The issue will be closed soon. |
Closing this issue as obsolete. |
Sorry, this is a bit vague ... but I have the following component:
In this instance, both
children
andtitle
are correctly marked asrequired
. However, when I use an intersection type like so to allow additional, valid html props ...... then for some reason both
children
andtitle
are no longer marked asrequired
. Am I doing something wrong to cause this?The text was updated successfully, but these errors were encountered: