Search
Preparing search index...
The search index is not available
@symbiotic/green-state
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"state/State"
State
Class State<T>
Type parameters
T
Hierarchy
State
ArrayState
BooleanState
NumberState
StringState
ValueState
Index
Constructors
constructor
Properties
state
subscriptions
Methods
dispose
get
publish
set
State
subscribe
Constructors
constructor
new
State
(
initialState
?:
T
)
:
State
Parameters
Default value
initialState:
T
= null
Returns
State
Properties
state
state
:
T
Private
subscriptions
subscriptions
:
Array
<
IStateCallback
<
T
>
>
= []
Methods
dispose
dispose
(
)
:
void
Returns
void
get
get
(
)
:
IMergedState
<
T
>
Returns
IMergedState
<
T
>
Private
publish
publish
(
)
:
void
Returns
void
set
State
set
State
(
newState
:
Partial
<
T
>
)
:
void
Parameters
newState:
Partial
<
T
>
Returns
void
subscribe
subscribe
(
callback
:
IStateCallback
<
T
>
)
:
(Anonymous function)
Parameters
callback:
IStateCallback
<
T
>
Returns
(Anonymous function)
Globals
"ioc-
react/
Dependency
Container
Context"
"ioc-
react/
Dependency
Container
React
Context"
"ioc-
react/
Inject"
"ioc-
react/
Inject
And
Subscribe"
"ioc-
react/use
Instance"
"ioc-
react/with
Dependencies"
"ioc/
Container"
"state-
react/
Compose"
"state-
react/
Inject
Array"
"state-
react/
Inject
Boolean"
"state-
react/
Inject
Focus"
"state-
react/
Inject
Hover"
"state-
react/
Inject
Number"
"state-
react/
Inject
String"
"state-
react/
Inject
Toggle"
"state-
react/
Inject
Value"
"state-
react/
Subscribe"
"state-
react/use
Subscription"
"state/
Array
State"
"state/
Boolean
State"
"state/
Number
State"
"state/
State"
"state/
String
State"
"state/
Value
State"
State
constructor
state
subscriptions
dispose
get
publish
set
State
subscribe
IMerged
State
IState
Callback
Omit
Generated using
TypeDoc