Skip to content

Commit

Permalink
fix(ToastContext): fix toast context type (#6073)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed Oct 4, 2021
1 parent 3fc5b57 commit 3fa3b28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ToastContext.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react';

// TODO: check
export interface ToastContextType {
onClose?: (e: Event) => void;
onClose?: (e?: React.MouseEvent | React.KeyboardEvent) => void;
}

const ToastContext = React.createContext<ToastContextType>({
Expand Down

0 comments on commit 3fa3b28

Please sign in to comment.