-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
fix(compiler-sfc): fix missing ReadonlyArray, ReadonlySet, ReadonlyMap and UnknownType (fix #10726) #10746
Conversation
Maybe the type of ReadonlyArray should be object, I'm not quite sure. |
b7ac88c
to
6808b11
Compare
…p and UnknownType
eaf91a2
to
1566f37
Compare
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
|
||
export default /*#__PURE__*/_defineComponent({ | ||
props: { | ||
"modelValue": { type: [String, ReadonlyArray, ReadonlySet, ReadonlyMap], skipCheck: true }, |
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.
This doesn't make sense. ReadonlyArray
is a TS type, not a built-in JavaScript object at runtime.
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.
Thank you!
Okay, can I move the ReadonlyArray
, ReadonlySet
, ReadonlyMap
to the next case and return it as an object?
Size ReportBundles
Usages
|
Thanks for the PR, however I don't think these are the right fixes. The tests are also not See 5cef52a |
No description provided.