question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modify the scaffold snippet for TypeScript

See original GitHub issue

I think it’s more useful to change it to the way components should be defined in Vue 2.5.0+ (link):

import Vue from 'vue'

export default Vue.extend({

})

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
HerringtonDarkholmecommented, Jan 25, 2018

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.

1reaction
WORMSScommented, Jul 20, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customizable scaffold snippets #1151 - vuejs/vetur - GitHub
We should provide a way to let users customize their scaffold snippets.
Read more >
How to Create a Custom VS Code Snippet to Scaffold Your ...
VS Code has some build-in snippets. You can use them with IntelliSense ( Ctrl+Space ) or from a dedicated snippet picker — use...
Read more >
Snippet | Vetur - GitHub Pages
Completions of scaffold snippets are sorted by their categories. Workspace > User > Vetur. You can customize the suffix and turn sources on/off...
Read more >
Nuxt Typescript Snippets - Visual Studio Marketplace
scaffold creates a .vue file with options to name the class and change the syle language to scss,css,less,styl,sass and where or not to...
Read more >
Can VSCode create callback method scaffolding for ...
.vscode - react.code-snippets node_modules public src ... The typescript community has a huge community and there are some libraries already ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found