From 73dffe8f87cb87ed7aed42effdc056ac6fe8ffde Mon Sep 17 00:00:00 2001 From: Aaron Lampros Date: Sat, 22 Feb 2025 17:45:14 -0500 Subject: [PATCH] fix: export IConfettiOptions Closes Types are no longer export #165 --- src/ReactConfetti.tsx | 2 ++ src/index.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/ReactConfetti.tsx b/src/ReactConfetti.tsx index 09f7ebb..e2d1f5c 100644 --- a/src/ReactConfetti.tsx +++ b/src/ReactConfetti.tsx @@ -1,6 +1,8 @@ import React from 'react' import Confetti, { IConfettiOptions, confettiDefaults } from './Confetti' +export type { IConfettiOptions } from './Confetti' + const ref = React.createRef() export type Props = Partial & diff --git a/src/index.ts b/src/index.ts index cbf54ff..fce6b9d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,4 @@ import { ReactConfetti } from './ReactConfetti' +export type { IConfettiOptions } from './Confetti' export default ReactConfetti