UNPKG
jay-js
Version:
latest (0.0.9)
1.0.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Jay is a framework for creating a single page application.
github.com/AJCastello/jay
AJCastello/jay
jay-js
/
hooks
/
State
/
State.d.ts
10 lines
(9 loc)
•
273 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
declare
type
DataType
=
string
|
Array
<
string
> |
boolean
;
export
declare
type
StateType
= {
set
:
(
newData
:
any
) =>
void
;
get
:
() =>
any
;
data
:
any
;
changes
:
any
;
observable
:
any
; };
export
declare
const
State
: <T>
(
data
: T
) =>
StateType
;