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
<scriptsetup>import { ref , readonly,shallowReadonly} from'vue'constfoo=readonly(newMap())//ts-error: Property 'set' does not exist on type 'ReadonlyMap<any, any>'.ts(2339)foo.set('a',1) constbar=shallowReadonly(newMap())//ts-error: Property 'set' does not exist on type 'ReadonlyMap<any, any>'.ts(2339)bar.set('a',2)</script>
What is actually happening?
<scriptsetup>import { ref , readonly,shallowReadonly} from'vue'constfoo=readonly(newMap())//ts-error: Property 'set' does not exist on type 'ReadonlyMap<any, any>'.ts(2339)foo.set('a',1) constbar=shallowReadonly(newMap())bar.set('a',2) // no error message</script>
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered:
Vue version
v3.5.0-alpha.5
Link to minimal reproduction
https://play.vuejs.org/#eNp9UUtPAjEQ/itNLwvJWh/IhaCJGg6a+Ah6bGLqMguL3WnTdgFD9r87LbIaYrg07feY+aaz5TfWilUDfMTHvnCVDcxDaOy1xKq2xgW2ZQ5KltOpZgb1V+4XSmuznv68W1Y6U7OMimQSJRYGfWClMeyq8/QQ1uxR2V6/HyVECurSy1SWnydkb/tQjmwHHQ7cpOncF4SMT3fBKbJEnvPgqVZZzcXSG6S5thIZk7wwta00uGcbKuol+YglJnKp3UPCgmsg3+PFAorPf/Cl30RM8hcHHtwKJO+4oNwcwo6evD7Bhu4dWZtZo0l9hJyCN7qJGXey2wZnFPuPLqW9T9upcP7mJ5sA6PdDxaBR2Sa95LSXuyOj/8YdiMvkk9jSL76vwMWa9IEDMRRnJ0rbhRJD3n4DXDS6+Q==
Steps to reproduce
https://play.vuejs.org/#eNp9UUtPAjEQ/itNLwvJWh/IhaCJGg6a+Ah6bGLqMguL3WnTdgFD9r87LbIaYrg07feY+aaz5TfWilUDfMTHvnCVDcxDaOy1xKq2xgW2ZQ5KltOpZgb1V+4XSmuznv68W1Y6U7OMimQSJRYGfWClMeyq8/QQ1uxR2V6/HyVECurSy1SWnydkb/tQjmwHHQ7cpOncF4SMT3fBKbJEnvPgqVZZzcXSG6S5thIZk7wwta00uGcbKuol+YglJnKp3UPCgmsg3+PFAorPf/Cl30RM8hcHHtwKJO+4oNwcwo6evD7Bhu4dWZtZo0l9hJyCN7qJGXey2wZnFPuPLqW9T9upcP7mJ5sA6PdDxaBR2Sa95LSXuyOj/8YdiMvkk9jSL76vwMWa9IEDMRRnJ0rbhRJD3n4DXDS6+Q==
What is expected?
What is actually happening?
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: