@refinio/one.models
Preparing search index...
api/utils/types
DataApiType
Type Alias DataApiType
type
DataApiType
=
{
getAllVersions
:
<
T
extends
Exclude
<
OneVersionedObjectTypes
,
VersionHead
>
,
>
(
idHash
:
SHA256IdHash
<
T
>
,
)
=>
Promise
<
T
[]
>
;
useLiveAllVersions
:
<
T
extends
Exclude
<
OneVersionedObjectTypes
,
VersionHead
>
,
>
(
idHash
:
SHA256IdHash
<
T
>
,
onUpdate
:
(
data
:
T
[]
)
=>
void
|
Promise
<
void
>
,
)
=>
Promise
<
()
=>
void
>
;
}
Implemented by
default
Index
Properties
get
All
Versions
use
Live
All
Versions
Properties
get
All
Versions
getAllVersions
:
<
T
extends
Exclude
<
OneVersionedObjectTypes
,
VersionHead
>
>
(
idHash
:
SHA256IdHash
<
T
>
,
)
=>
Promise
<
T
[]
>
use
Live
All
Versions
useLiveAllVersions
:
<
T
extends
Exclude
<
OneVersionedObjectTypes
,
VersionHead
>
>
(
idHash
:
SHA256IdHash
<
T
>
,
onUpdate
:
(
data
:
T
[]
)
=>
void
|
Promise
<
void
>
,
)
=>
Promise
<
()
=>
void
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
get
All
Versions
use
Live
All
Versions
@refinio/one.models
Loading...