ToastStore fix type definition

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-06-29 11:34:58 +01:00
parent a36a03bd05
commit d477a49160

View File

@ -24,7 +24,7 @@ export interface IToast<C extends keyof JSX.IntrinsicElements | JSXElementConstr
title: string; title: string;
icon?: string; icon?: string;
component: C; component: C;
props?: React.ComponentProps<C>; props?: Omit<React.ComponentProps<C>, "toastKey">; // toastKey is injected by ToastContainer
} }
/** /**