UNPKG
@iore8655/react-bus
Version:
latest (0.2.7)
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.4
0.0.3
0.0.2
0.0.1
@iore8655/react-bus is a global/local state management by pub/sub
github.com/sanggeun-choi/react-bus
@iore8655/react-bus
/
dist
/
react-event-bus.d.ts
8 lines
(7 loc)
•
277 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
Bus
}
from
'./react-bus-core'
;
declare
class
EventBus
extends
Bus
{
dispatch
(...
props
:
any
[]):
void
; }
export
declare
function
createEventBus
(
):
EventBus
;
export
declare
function
useEventBusSelector
(
eventBus
:
EventBus
,
callback
:
Function
):
void
;
export
{};