You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have noticed that in the source code of Vue, many function parameters are typed as "unknown", but there are no type guards used internally, and instead they are directly asserted as another type. I am wondering if it would be possible to modify these parameters to use the "any" type instead, so that we don't need to perform type assertions. I am willing to submit a PR for this change, even though it won't affect the business logic, as it will modify a significant amount of code. Therefore, I would like to consult with others first to see if this approach is reasonable and necessary. Thank you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have noticed that in the source code of Vue, many function parameters are typed as "unknown", but there are no type guards used internally, and instead they are directly asserted as another type. I am wondering if it would be possible to modify these parameters to use the "any" type instead, so that we don't need to perform type assertions. I am willing to submit a PR for this change, even though it won't affect the business logic, as it will modify a significant amount of code. Therefore, I would like to consult with others first to see if this approach is reasonable and necessary. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions