Preparing search index...
The search index is not available
@atomic-reactor/reactium-sdk-core
@atomic-reactor/reactium-sdk-core
SyncState
Interface SyncState<StateType>
interface
SyncState
<
StateType
>
{
[INITIAL_STATE]
:
StateType
;
[STATE]
:
StateType
;
_addEventListener
:
(
(
type
,
listener
,
options
)
=>
void
)
;
listeners
:
EventListenerRegistry
;
options
:
SyncStateOptions
;
removeAllEventListeners
:
(
(
type
)
=>
void
)
;
removeEventListenerById
:
(
(
type
,
id
)
=>
void
)
;
reset
:
(
(
)
=>
this
)
;
get
initial
():
StateType
;
get
state
():
StateType
;
get
stateObj
():
{
state
:
StateType
;
}
;
del
(
path
,
update
?
)
:
any
;
dispatch
<
Payload
>
(
type
,
payload
?
)
:
this
;
extend
(
prop
,
method
)
:
void
;
get
<
RTN
>
(
path
,
defaultValue
)
:
any
;
set
<
VAL
>
(
path
,
value
,
update
?
,
forceMerge
?
)
:
this
;
[
key
:
string
]
:
any
;
}
Type Parameters
StateType
extends
object
Implemented by
ReactiumSyncState
Indexable
[
key:
string
]:
any
Index
Properties
[INITIAL_
STATE]
[STATE]
_add
Event
Listener
listeners
options
remove
All
Event
Listeners
remove
Event
Listener
By
Id
reset
Accessors
initial
state
state
Obj
Methods
del
dispatch
extend
get
set
Properties
[INITIAL_
STATE]
[INITIAL_
STATE]
:
StateType
[STATE]
[STATE]
:
StateType
_add
Event
Listener
_add
Event
Listener
:
(
(
type
,
listener
,
options
)
=>
void
)
Type declaration
(
type
,
listener
,
options
)
:
void
Parameters
type
:
string
listener
:
(
(
e
)
=>
void
)
(
e
)
:
void
Parameters
e
:
Event
Returns
void
options
:
any
Returns
void
listeners
listeners
:
EventListenerRegistry
options
options
:
SyncStateOptions
remove
All
Event
Listeners
remove
All
Event
Listeners
:
(
(
type
)
=>
void
)
Type declaration
(
type
)
:
void
Parameters
type
:
string
Returns
void
remove
Event
Listener
By
Id
remove
Event
Listener
By
Id
:
(
(
type
,
id
)
=>
void
)
Type declaration
(
type
,
id
)
:
void
Parameters
type
:
string
id
:
string
Returns
void
reset
reset
:
(
(
)
=>
this
)
Type declaration
(
)
:
this
Returns
this
Accessors
initial
get
initial
(
)
:
StateType
Returns
StateType
state
get
state
(
)
:
StateType
Returns
StateType
state
Obj
get
stateObj
(
)
:
{
state
:
StateType
;
}
Returns
{
state
:
StateType
;
}
state
:
StateType
Methods
del
del
(
path
,
update
?
)
:
any
Parameters
path
:
Path
Optional
update
:
boolean
Returns
any
dispatch
dispatch
<
Payload
>
(
type
,
payload
?
)
:
this
Type Parameters
Payload
extends
EventPayload
Parameters
type
:
string
Optional
payload
:
Payload
Returns
this
extend
extend
(
prop
,
method
)
:
void
Parameters
prop
:
string
method
:
(
(
...
args
)
=>
any
)
(
...
args
)
:
any
Parameters
Rest
...
args
:
any
[]
Returns
any
Returns
void
get
get
<
RTN
>
(
path
,
defaultValue
)
:
any
Type Parameters
RTN
=
any
Parameters
path
:
Path
defaultValue
:
any
Returns
any
set
set
<
VAL
>
(
path
,
value
,
update
?
,
forceMerge
?
)
:
this
Type Parameters
VAL
=
any
Parameters
path
:
false
|
Path
|
VAL
value
:
VAL
Optional
update
:
boolean
Optional
forceMerge
:
boolean
Returns
this
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
[INITIAL_
STATE]
[STATE]
_add
Event
Listener
listeners
options
remove
All
Event
Listeners
remove
Event
Listener
By
Id
reset
initial
state
state
Obj
del
dispatch
extend
get
set
@atomic-reactor/reactium-sdk-core
Loading...