-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Make React types more compatible with other libraries #2282
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
c77f5e5
Export explicit props types
thecrypticace 5c7ee92
wip
thecrypticace 5a5a4aa
wip
thecrypticace a4eed8d
wip
thecrypticace df0a4f2
wip dialog types
thecrypticace b8e71d4
wip
thecrypticace e55ef04
Fix build
thecrypticace 12c13e2
Upgrade esbuild
thecrypticace 198e3cf
Add aliased types for ComponentLabel and ComponentDescription
thecrypticace ab62472
Update lockfile
thecrypticace c430b4f
Update changelog
thecrypticace 48f5f7f
Update exported prop type names
thecrypticace 459e16d
Make onChange optional
thecrypticace bfb0887
Update tests
thecrypticace 3016dc8
Use `never` in CleanProps
thecrypticace 889fc6b
Fix types
thecrypticace e9654f6
wip
thecrypticace 99d9ed2
work on types
thecrypticace c3bf05a
wip
thecrypticace 67f9e58
wip
thecrypticace 28a88fe
Tweak types in render helpers
thecrypticace d747cee
Fix CS
thecrypticace 014e36c
Fix changelog
thecrypticace 0b9d443
Tweak render prop types for combobox
thecrypticace 0021c7c
Update hidden props type name
thecrypticace 39bfa51
remove unused type
thecrypticace d88e78d
Tweak types
thecrypticace feceecc
Update TypeScript version
thecrypticace File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Random off-topic side note: I think one way we can solve this is by introduce a different API using some factory like functions. Example:
Which could create the
Combobox
,Combobox.Input
,Combobox.Option
, ... components already scoped to theTypeYouWant
🤔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.
Hah that's pretty good idea 🤔
Would be a good thing to explore for future improvements