-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Expose shouldCloseOnInteractOutside
on Modal / ModalOverlay
#5986
Expose shouldCloseOnInteractOutside
on Modal / ModalOverlay
#5986
Conversation
GET_BUILD |
Build successful! π |
## API Changes
unknown top level export { type: 'any' } |
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.
thanks for submitting!
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, thanks! We can try to dig into making the docs types processer better for the Pick as a followup
@LFDanLu I'm not so sure if we can distinguish the case where we need the literal But maybe there's a way that I'm not aware of, and I'm all for correcting this docs-processing issue, so let me know if I can be of any help achieving that! |
Closes #5916
In addition to the fix, I updated how
Pick<>
TS type is handled inDocsPackager.js
.In particular, the condition that I wrote last time to avoid some side effects (i.e.,
if (application[0]?.type === 'application')
) was preventing the correct parsing ofPick<>
when the expression doesn't involve generics (e.g., when the condition is present, something likePick<AriaOverlayProps, 'shouldCloseOnInteractOutside'>
wouldn't work whereas something likePick<DatePickerStateOptions<T>, 'shouldCloseOnSelect'>
would).So by removing the aforementioned condition, a side effect such as the one described in the comment would come to life again unfortunately. I couldn't find a way to distinguish and process differently for such a case.
Without that condition it's the same as how
Omit<>
is processed. And yes, I checkedOmit<>
also suffers from the same side effects.β Pull Request Checklist:
π Test Instructions:
Stories
Docs
π§’ Your Project: