FP-Devicer - v3.0.0
Preparing search index...
next
NextObservationStore
Interface NextObservationStore<TFeatures>
interface
NextObservationStore
<
TFeatures
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
unknown
>
,
>
{
all
()
:
Promise
<
readonly
Observation
<
TFeatures
>
[]
>
;
get
(
id
:
string
)
:
Promise
<
Observation
<
TFeatures
>
|
undefined
>
;
remove
(
id
:
string
)
:
Promise
<
boolean
>
;
restore
(
snapshot
:
NextSnapshot
<
TFeatures
>
)
:
Promise
<
void
>
;
save
(
observation
:
Observation
<
TFeatures
>
)
:
Promise
<
void
>
;
snapshot
()
:
Promise
<
NextSnapshot
<
TFeatures
>
>
;
transaction
<
TResult
>
(
operation
:
(
store
:
NextObservationStore
<
TFeatures
>
,
)
=>
TResult
|
Promise
<
TResult
>
,
)
:
Promise
<
TResult
>
;
}
Type Parameters
TFeatures
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
unknown
>
Hierarchy (
View Summary
)
NextObservationStore
GovernedNextObservationStore
Index
Methods
all
get
remove
restore
save
snapshot
transaction
Methods
all
all
()
:
Promise
<
readonly
Observation
<
TFeatures
>
[]
>
Returns
Promise
<
readonly
Observation
<
TFeatures
>
[]
>
get
get
(
id
:
string
)
:
Promise
<
Observation
<
TFeatures
>
|
undefined
>
Parameters
id
:
string
Returns
Promise
<
Observation
<
TFeatures
>
|
undefined
>
remove
remove
(
id
:
string
)
:
Promise
<
boolean
>
Parameters
id
:
string
Returns
Promise
<
boolean
>
restore
restore
(
snapshot
:
NextSnapshot
<
TFeatures
>
)
:
Promise
<
void
>
Parameters
snapshot
:
NextSnapshot
<
TFeatures
>
Returns
Promise
<
void
>
save
save
(
observation
:
Observation
<
TFeatures
>
)
:
Promise
<
void
>
Parameters
observation
:
Observation
<
TFeatures
>
Returns
Promise
<
void
>
snapshot
snapshot
()
:
Promise
<
NextSnapshot
<
TFeatures
>
>
Returns
Promise
<
NextSnapshot
<
TFeatures
>
>
transaction
transaction
<
TResult
>
(
operation
:
(
store
:
NextObservationStore
<
TFeatures
>
,
)
=>
TResult
|
Promise
<
TResult
>
,
)
:
Promise
<
TResult
>
Type Parameters
TResult
Parameters
operation
:
(
store
:
NextObservationStore
<
TFeatures
>
)
=>
TResult
|
Promise
<
TResult
>
Returns
Promise
<
TResult
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
all
get
remove
restore
save
snapshot
transaction
FP-Devicer - v3.0.0
Loading...