Skip to content

definePropsRefs return type #545

Answered by sxzz
extrem7 asked this question in Q&A
Nov 3, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

The returning type of definePropsRefs is stricter than toRefs. Because toRefs doesn't know the context in handling props. For definePropsRefs we know the props should be readonly and never be assigned.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@extrem7
Comment options

@sxzz
Comment options

Answer selected by extrem7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants