I think so.
Though pretty many TS users actually use vue-class-component rather than vanilla Vue.
Maybe we can change scaffold in future if Vue officially support native class syntax.
Fair enough. Could also have two snippets:
is there anyway for us to have our own ?
we use
<template>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
@Component({
components: {},
})
export default class <filename> extends Vue {
}
</script>
and I have no idea how I set it to do that rather than Vue.extends
Wait for https://github.com/vuejs/vetur/issues/1151, which I have already started to work on in https://github.com/vuejs/vetur/tree/scaffold-snippet.
Most helpful comment
I think so.
Though pretty many TS users actually use vue-class-component rather than vanilla Vue.
Maybe we can change scaffold in future if Vue officially support native class syntax.