Skip to content

Commit 8935ad3

Browse files
author
Louis Kraemer
authored
fix(types): fix types for react 19 compatibility (#573)
1 parent aaf5a1c commit 8935ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Toast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function removeOldRef(oldRef: ToastRef | null) {
6666
refs = refs.filter((r) => r.current !== oldRef);
6767
}
6868

69-
export function Toast(props: ToastProps) {
69+
export function Toast(props: ToastProps): React.ReactElement {
7070
const toastRef = React.useRef<ToastRef | null>(null);
7171

7272
/*

0 commit comments

Comments
 (0)