We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3577d9 commit 670da78Copy full SHA for 670da78
src/vue/@types/confetti.d.ts
@@ -1,7 +1,20 @@
1
declare module "vue-confetti/src/confetti.js";
2
3
+interface ConfettiInterface {
4
+ start(opts: Partial<ConfettiConfig>): void,
5
+ update(opts: Partial<ConfettiConfig>): void,
6
+ stop(): void,
7
+}
8
+
9
+enum ParticlesType {
10
+ circle = "circle",
11
+ rect = "rect",
12
+ heart = "heart",
13
+ image = "image",
14
15
16
interface ParticlesConfig {
- type : string,
17
+ type : ParticlesType,
18
size : number,
19
dropRate : number,
20
colors : string[],
@@ -10,7 +23,7 @@ interface ParticlesConfig {
23
24
interface ConfettiConfig {
25
particles : Partial<ParticlesConfig>[],
- defaultType : string,
26
+ defaultType : ParticlesType,
27
defaultSize : number,
28
defaultDropRate : number,
29
defaultColors : string[],
0 commit comments