Props defined based on imported interface, generates its type as null instead of Object
Vue version
3.2.37
Link to minimal reproduction
Steps to reproduce
- Open the SFC playground
- Look at the
Comp.vue
's generated JS - Check the props type
What is expected?
event
type should be Object
just like anotherEvent
.
What is actually happening?
event
type is null
System Info
System:
OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish)
CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor
Memory: 2.35 GB / 15.57 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
Yarn: 1.22.18 - ~/.nvm/versions/node/v16.14.2/bin/yarn
npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
Browsers:
Chrome: 101.0.4951.64
npmPackages:
vue: ^3.2.37 => 3.2.37
### Any additional comments?
I want to extract props types from TS to JS.