UNPKG
horojs
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A micro library for a reactive UI application.
github.com/lroskoshin/horo
lroskoshin/horo
horojs
/
dist
/
types
/
utils
/
state.d.ts
9 lines
(8 loc)
•
238 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
type
Dispatcher
<
Value
> = { (
value
:
Value
):
void
; };
type
State
<
Value
> = { (
cb
:
(
value
:
Value
) =>
void
):
void
; };
declare
function
state<
Value
>(
value
:
Value
): [
State
<
Value
>,
Dispatcher
<
Value
>];
export
{
Dispatcher
,
State
, state };