UNPKG
ts-bus
Version:
latest (2.3.1)
next (3.0.0)
3.0.0
2.3.1
2.3.0
2.2.1
2.2.0
2.1.0
2.0.0
1.1.0
1.0.0
0.5.0
0.4.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.7
0.0.5
0.0.4
0.0.2
0.0.1
0.0.0
<p align="center"> <img src="logo.png" width="100" height="100"/> </p>
github.com/ryardley/ts-bus
ts-bus
/
BusContext.d.ts
5 lines
(4 loc)
•
207 B
TypeScript
View Raw
1
2
3
4
5
import
React
from
"react"
;
import
{
EventBus
}
from
"./EventBus"
;
export
declare
const
useBus
:
() =>
EventBus
;
export
declare
const
BusProvider
:
React
.
ProviderExoticComponent
<
React
.
ProviderProps
<
EventBus
>>;