Documentation
Preparing search index...
@waku/react
IStore
Type Alias IStore
type
IStore
=
{
multicodec
:
string
;
queryGenerator
:
<
T
extends
IDecodedMessage
>
(
decoders
:
IDecoder
<
T
>
[]
,
options
?:
Partial
<
QueryRequestParams
>
,
)
=>
AsyncGenerator
<
Promise
<
T
|
undefined
>
[]
>
;
queryWithOrderedCallback
:
<
T
extends
IDecodedMessage
>
(
decoders
:
IDecoder
<
T
>
[]
,
callback
:
(
message
:
T
)
=>
Promise
<
void
|
boolean
>
|
boolean
|
void
,
options
?:
Partial
<
QueryRequestParams
>
,
)
=>
Promise
<
void
>
;
queryWithPromiseCallback
:
<
T
extends
IDecodedMessage
>
(
decoders
:
IDecoder
<
T
>
[]
,
callback
:
(
message
:
Promise
<
T
|
undefined
>
,
)
=>
Promise
<
void
|
boolean
>
|
boolean
|
void
,
options
?:
Partial
<
QueryRequestParams
>
,
)
=>
Promise
<
void
>
;
createCursor
(
message
:
IDecodedMessage
)
:
StoreCursor
;
stop
()
:
void
;
}
Implemented by
Store
Index
Properties
multicodec
query
Generator
query
With
Ordered
Callback
query
With
Promise
Callback
Methods
create
Cursor
stop
Properties
Readonly
multicodec
multicodec
:
string
query
Generator
queryGenerator
:
<
T
extends
IDecodedMessage
>
(
decoders
:
IDecoder
<
T
>
[]
,
options
?:
Partial
<
QueryRequestParams
>
,
)
=>
AsyncGenerator
<
Promise
<
T
|
undefined
>
[]
>
query
With
Ordered
Callback
queryWithOrderedCallback
:
<
T
extends
IDecodedMessage
>
(
decoders
:
IDecoder
<
T
>
[]
,
callback
:
(
message
:
T
)
=>
Promise
<
void
|
boolean
>
|
boolean
|
void
,
options
?:
Partial
<
QueryRequestParams
>
,
)
=>
Promise
<
void
>
query
With
Promise
Callback
queryWithPromiseCallback
:
<
T
extends
IDecodedMessage
>
(
decoders
:
IDecoder
<
T
>
[]
,
callback
:
(
message
:
Promise
<
T
|
undefined
>
,
)
=>
Promise
<
void
|
boolean
>
|
boolean
|
void
,
options
?:
Partial
<
QueryRequestParams
>
,
)
=>
Promise
<
void
>
Methods
create
Cursor
createCursor
(
message
:
IDecodedMessage
)
:
StoreCursor
Parameters
message
:
IDecodedMessage
Returns
StoreCursor
stop
stop
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
multicodec
query
Generator
query
With
Ordered
Callback
query
With
Promise
Callback
Methods
create
Cursor
stop
Documentation
Loading...