vue-facing-decorator
vue-facing-decorator copied to clipboard
[BUG?] No Prop Intellisense
Not getting prop intellisense:
Tried with normal <script setup>
without using vue-facing-decorator and I then get intellisense:
components/HelloWorld.vue with vue-facing-decorator:
<script lang="ts">
import {
Vue,
Component,
Prop,
Emit,
} from 'vue-facing-decorator'
@Component
export default class App extends Vue {
@Prop({})
public name?: string
}
</script>
<template>
Name: {{name}}
</template>
<style scoped>
</style>
components/HelloWorld.vue without vue-facing-decorator:
<script setup lang="ts">
const {name} = defineProps(['name'])
</script>
<template>
{{name}}
</template>
<style scoped>
</style>
Am I missing something? Thank you.
So far, I don't known the details of SFC intellisense. Maybe vscode plugin analyze vue composition api to get these info or with other ways. In opposed, TSX's component type intellisense is well documented. So SFC intellisense is not be considered while I creating this repo. I will focus on it, but it won't be supported in recent days probably.
Wow quick reply. 🤯
Yes I understand and it makes sense. I will try TSX out. Thanks for replying.