UNPKG
react-toast
Version:
latest (1.0.3)
1.0.3
1.0.1
1.0.0
0.1.0
Minimal toast notifications for React.
github.com/moharnadreza/react-toast
moharnadreza/react-toast
react-toast
/
dist
/
utils
/
toastDispatcher.d.ts
8 lines
(7 loc)
•
232 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
TAction
}
from
'../hooks'
;
interface
IToastDispatcher
{
dispatch
:
(
value
:
TAction
) =>
void
;
delay
?:
number
; }
export
declare
const
toastDispatcher
:
(
{ dispatch, delay }:
IToastDispatcher
) =>
void
;
export
{};