Skip to content

Instantly share code, notes, and snippets.

@quanghm27
Forked from danielkellyio/typescript.json
Created October 3, 2022 02:08
Show Gist options
  • Save quanghm27/d77eb68bc66dc491d6021c628b1246d2 to your computer and use it in GitHub Desktop.
Save quanghm27/d77eb68bc66dc491d6021c628b1246d2 to your computer and use it in GitHub Desktop.
Vue/TS defineEmits VS Code Snippet
{
"Vue defineEmits":{
"prefix": "defineEmits",
"body" : [
"defineEmits<{",
" (e: \"${1:event}\", ${2:payload}: { $3 }): void;",
"}>();",
],
"description": "defineEmits type declaration for Vue.js components"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment