Search
Preparing search index...
The search index is not available
rtkex
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
rtkex
EntityAdapter
Interface EntityAdapter<T>
Type Parameters
T
Hierarchy
EntityStateAdapter
<
T
>
EntityAdapter
Index
Properties
select
Id
sort
Comparer
Methods
add
Many
add
One
get
Initial
State
get
Selectors
remove
All
remove
Many
remove
One
set
All
set
Many
set
One
update
Many
update
One
upsert
Many
upsert
One
Properties
select
Id
select
Id
:
IdSelector
<
T
>
sort
Comparer
sort
Comparer
:
false
|
Comparer
<
T
>
Methods
add
Many
add
Many
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entities
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
)
:
S
add
Many
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entities
:
{
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entities:
readonly
T
[]
|
Record
<
EntityId
,
T
>
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entities:
{
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
;
type
:
string
}
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
type
:
string
Returns
S
add
One
add
One
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entity
:
T
)
:
S
add
One
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, action
:
{
payload
:
T
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entity:
T
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
action:
{
payload
:
T
;
type
:
string
}
payload
:
T
type
:
string
Returns
S
get
Initial
State
get
Initial
State
(
)
:
EntityState
<
T
>
get
Initial
State
<
S
>
(
state
:
S
)
:
EntityState
<
T
>
&
S
Returns
EntityState
<
T
>
Type Parameters
S
extends
object
Parameters
state:
S
Returns
EntityState
<
T
>
&
S
get
Selectors
get
Selectors
(
)
:
EntitySelectors
<
T
,
EntityState
<
T
>
>
get
Selectors
<
V
>
(
selectState
:
(
(
state
:
V
)
=>
EntityState
<
T
>
)
)
:
EntitySelectors
<
T
,
V
>
Returns
EntitySelectors
<
T
,
EntityState
<
T
>
>
Type Parameters
V
Parameters
selectState:
(
(
state
:
V
)
=>
EntityState
<
T
>
)
(
state
:
V
)
:
EntityState
<
T
>
Parameters
state:
V
Returns
EntityState
<
T
>
Returns
EntitySelectors
<
T
,
V
>
remove
All
remove
All
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
Returns
S
remove
Many
remove
Many
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, keys
:
readonly
EntityId
[]
)
:
S
remove
Many
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, keys
:
{
payload
:
readonly
EntityId
[]
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
keys:
readonly
EntityId
[]
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
keys:
{
payload
:
readonly
EntityId
[]
;
type
:
string
}
payload
:
readonly
EntityId
[]
type
:
string
Returns
S
remove
One
remove
One
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, key
:
EntityId
)
:
S
remove
One
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, key
:
{
payload
:
EntityId
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
key:
EntityId
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
key:
{
payload
:
EntityId
;
type
:
string
}
payload
:
EntityId
type
:
string
Returns
S
set
All
set
All
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entities
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
)
:
S
set
All
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entities
:
{
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entities:
readonly
T
[]
|
Record
<
EntityId
,
T
>
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entities:
{
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
;
type
:
string
}
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
type
:
string
Returns
S
set
Many
set
Many
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entities
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
)
:
S
set
Many
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entities
:
{
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entities:
readonly
T
[]
|
Record
<
EntityId
,
T
>
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entities:
{
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
;
type
:
string
}
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
type
:
string
Returns
S
set
One
set
One
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entity
:
T
)
:
S
set
One
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, action
:
{
payload
:
T
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entity:
T
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
action:
{
payload
:
T
;
type
:
string
}
payload
:
T
type
:
string
Returns
S
update
Many
update
Many
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, updates
:
readonly
Update
<
T
>
[]
)
:
S
update
Many
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, updates
:
{
payload
:
readonly
Update
<
T
>
[]
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
updates:
readonly
Update
<
T
>
[]
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
updates:
{
payload
:
readonly
Update
<
T
>
[]
;
type
:
string
}
payload
:
readonly
Update
<
T
>
[]
type
:
string
Returns
S
update
One
update
One
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, update
:
Update
<
T
>
)
:
S
update
One
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, update
:
{
payload
:
Update
<
T
>
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
update:
Update
<
T
>
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
update:
{
payload
:
Update
<
T
>
;
type
:
string
}
payload
:
Update
<
T
>
type
:
string
Returns
S
upsert
Many
upsert
Many
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entities
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
)
:
S
upsert
Many
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entities
:
{
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entities:
readonly
T
[]
|
Record
<
EntityId
,
T
>
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entities:
{
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
;
type
:
string
}
payload
:
readonly
T
[]
|
Record
<
EntityId
,
T
>
type
:
string
Returns
S
upsert
One
upsert
One
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entity
:
T
)
:
S
upsert
One
<
S
>
(
state
:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
, entity
:
{
payload
:
T
;
type
:
string
}
)
:
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entity:
T
Returns
S
Type Parameters
S
extends
EntityState
<
T
,
S
>
Parameters
state:
IsAny
<
S
,
EntityState
<
T
>
,
S
>
entity:
{
payload
:
T
;
type
:
string
}
payload
:
T
type
:
string
Returns
S
Exports
Entity
Adapter
select
Id
sort
Comparer
add
Many
add
One
get
Initial
State
get
Selectors
remove
All
remove
Many
remove
One
set
All
set
Many
set
One
update
Many
update
One
upsert
Many
upsert
One
Generated using
TypeDoc