Typescript support
See original GitHub issue Try `npm install @types/vue-confetti` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue-confetti';`
1 | import Vue from 'vue'
> 2 | import VueConfetti from 'vue-confetti'
| ^
3 |
4 | Vue.use(VueConfetti)
5 |
ℹ Version: typescript 3.8.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
TypeScript: JavaScript With Syntax For Types.
TypeScript extends JavaScript by adding types to the language. TypeScript speeds up your development experience by catching errors and providing fixes ...
Read more >TypeScript - Wikipedia
TypeScript supports definition files that can contain type information of existing JavaScript libraries, much like C++ header files can describe the ...
Read more >TypeScript Programming with Visual Studio Code
Visual Studio Code includes TypeScript language support but does not include the TypeScript compiler, tsc . You will need to install the TypeScript...
Read more >TypeScript | WebStorm Documentation - JetBrains
WebStorm supports developing, running, and debugging TypeScript source code. ... Learn more from Compiling TypeScript into JavaScript.
Read more >TypeScript Introduction - W3Schools
TypeScript is JavaScript with added syntax for types. ... as Visual Studio Code, have built-in TypeScript support and can show errors as you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I got this working with Nuxtjs and Typescript
plugins/vue-confetti.client.ts
types/vue-confetti.d.ts
nuxt.config.js
Now I can use
$confetti
in any part of my Vue components@mikesimps your solution worked. 💥 But only on pages, not components. So I emitted on click, from component to page and called
this.$confetti.start()
.