Skip to content

Commit 3fa3b28

Browse files
authored
fix(ToastContext): fix toast context type (react-bootstrap#6073)
1 parent 3fc5b57 commit 3fa3b28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ToastContext.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as React from 'react';
22

3-
// TODO: check
43
export interface ToastContextType {
5-
onClose?: (e: Event) => void;
4+
onClose?: (e?: React.MouseEvent | React.KeyboardEvent) => void;
65
}
76

87
const ToastContext = React.createContext<ToastContextType>({

0 commit comments

Comments
 (0)