File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export interface DictionaryEntry {
3939 ukphone : string ;
4040}
4141
42- // Add a declaration for canvas-confetti
42+ // Correctly declare the canvas-confetti module
4343declare module 'canvas-confetti' {
4444 interface ConfettiOptions {
4545 particleCount ?: number ;
@@ -61,8 +61,7 @@ declare module 'canvas-confetti' {
6161 disableForReducedMotion ?: boolean ;
6262 }
6363
64- type ConfettiFunction = ( options ?: ConfettiOptions ) => Promise < null > ;
65-
66- const confetti : ConfettiFunction ;
67- export default confetti ;
68- }
64+ // Just declare the function as the default value without export syntax
65+ function confetti ( options ?: ConfettiOptions ) : Promise < null > ;
66+ // No export statement at all in module augmentation
67+ }
You can’t perform that action at this time.
0 commit comments