-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
types(defineComponent): Stricter Component Type + helpers #9556
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
Open
pikax
wants to merge
83
commits into
minor
Choose a base branch
from
pikax/component_helper_types
base: minor
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
b256412
WIP: component helper types
pikax e1ef6a8
fix one issue
pikax fbd083b
working kinda
pikax 8934665
[autofix.ci] apply automated fixes
autofix-ci[bot] e7c0383
add Extract component Options
pikax 5f86b19
added types
pikax 22c304c
more tests
pikax c2c0958
working few things
pikax 3fbfe6f
cleanup
pikax 99e48a7
removed unused
pikax 1ce7234
[autofix.ci] apply automated fixes
autofix-ci[bot] d88f7af
remove stuff temp
pikax 3b653cd
[autofix.ci] apply automated fixes
autofix-ci[bot] 9b23cdf
small improvements
pikax de726ac
Merge branch 'main' into pikax/component_helper_types
pikax 8b1faf7
[autofix.ci] apply automated fixes
autofix-ci[bot] ae7b51b
export LooseRequired
pikax 9e67b17
WIP DefineComponentOptions type
pikax f6f82fa
WIP building
pikax 0506beb
test passing
pikax 3e29651
fix other issues
pikax 48a0b08
remove render function type
pikax 6d1db29
async component changes
pikax f47bc76
[autofix.ci] apply automated fixes
autofix-ci[bot] bbad2f8
support more overloads on defineComponet and also support VNode on h
pikax 1d40c76
add vnode support
pikax 998607e
few more changes
pikax 4254fac
Merge branch 'main' into pikax/component_helper_types
pikax 633b852
more work
pikax 96f244a
more improvements
pikax aab3189
[autofix.ci] apply automated fixes
autofix-ci[bot] 8a61db8
some improvements
pikax 3d8a5c0
more improvements and add some comments
pikax ca626bf
more improvments
pikax b2c4a38
Merge branch 'main' into pikax/component_helper_types
pikax 9853470
[autofix.ci] apply automated fixes
autofix-ci[bot] 0d0bf05
fix componentSlots
pikax 9ae88d3
[autofix.ci] apply automated fixes
autofix-ci[bot] f62ae36
support volar syntax for slots
pikax 413d556
[autofix.ci] apply automated fixes
autofix-ci[bot] 836a930
introducing DeclareComponent type
pikax 8336ba5
[autofix.ci] apply automated fixes
autofix-ci[bot] 77ca7b1
chore: renaming & lint
pikax bba1cde
[autofix.ci] apply automated fixes
autofix-ci[bot] ab9823d
fix test type
pikax c98c360
chore: some changes
pikax 86826aa
[autofix.ci] apply automated fixes
autofix-ci[bot] 92057db
some imrpovements
pikax b015918
chore: some improvements
pikax 6819d05
[autofix.ci] apply automated fixes
autofix-ci[bot] f3119d4
types: change DefineComponent defaults to be more lenient
pikax 53f2af0
[autofix.ci] apply automated fixes
autofix-ci[bot] 018223d
chore: improve ComponentData
pikax 5e9d759
Custom props
pikax 73f52d3
[autofix.ci] apply automated fixes
autofix-ci[bot] bf6286d
kinda working
pikax aa91257
remov efunction
pikax bb4cf93
[autofix.ci] apply automated fixes
autofix-ci[bot] d483491
chore: fix tests
pikax b1094a6
[autofix.ci] apply automated fixes
autofix-ci[bot] b4b62d0
chore: render function
pikax 46cc5cb
[autofix.ci] apply automated fixes
autofix-ci[bot] cc2ed2a
chore: remove comments
pikax e777107
Merge branch 'minor' into pikax/component_helper_types
pikax eaa2ded
type fixing
pikax e3d217b
fix tests
pikax e063b78
fix tests
pikax e8e937b
chore: review
pikax fb2e70b
chore: improve defineAsyncComponent types
pikax 5c0c261
chore: improve tests for async component
pikax 37ca2cb
chore: some improvements + tests
pikax e9c7dfc
added DeclareEmits and removed shortEmits type
pikax b56836f
EmitsOptions to support events
pikax f3b9c28
improve type resolution when using ComponentEmits on DeclareComponent
pikax 3b307e3
chore: improve ObjectToProps, to keep the original type
pikax b8b99a8
chore: Added DynamicComponent type helper
pikax 7866070
chore: fix typo
pikax c6c8caf
chore: add a few tests for DynamicComponent
pikax 42301b3
chore: improve types
pikax 3ff6732
chore: clean up types, prevent object properties being overridden
pikax 39b9ade
chore: fix usage of ComponentProps on DeclareComponent
pikax 5890e8c
chore: fix type inferrence on props
pikax bdc1d73
chore: improvements on resolving props
pikax 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
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.
Uh oh!
There was an error while loading. Please reload this page.