Open
Description
Vue version
3.5.16
Link to minimal reproduction
Steps to reproduce
Use a class with a private or protected property as the Type to be passed through a components props (E.g. defineProps). An error will appear in the parent component.
What is expected?
An error should not appear when passing the correct type to the child component.
What is actually happening?
The defineProps
method exposes the private and protected properties. This needs to be consistent with the behaviour of the ref
method to prevent a mismatch with the types.
System Info
System:
OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
Memory: 4.54 GB / 15.36 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
Yarn: 4.7.0 - ~/Repositories/workspace/node_modules/.bin/yarn
npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
Browsers:
Chrome: 136.0.7103.113
Any additional comments?
No response