Skip to content

Commit 525607f

Browse files
eslint
1 parent 32d6c93 commit 525607f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/app/types/types.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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
4343
declare 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+
}

0 commit comments

Comments
 (0)