mirror of https://github.com/waku-org/js-waku.git
Rename type before introducing CreateOptions
This commit is contained in:
parent
eb521b4dbd
commit
f0f14f9995
|
@ -13,7 +13,7 @@ export const StoreCodec = '/vac/waku/store/2.0.0-beta3';
|
|||
|
||||
export { Direction };
|
||||
|
||||
export interface Options {
|
||||
export interface QueryOptions {
|
||||
peerId: PeerId;
|
||||
contentTopics: string[];
|
||||
pubsubTopic?: string;
|
||||
|
@ -40,7 +40,7 @@ export class WakuStore {
|
|||
* @param options.callback Callback called on page of stored messages as they are retrieved
|
||||
* @throws If not able to reach the peer to query.
|
||||
*/
|
||||
async queryHistory(options: Options): Promise<WakuMessage[] | null> {
|
||||
async queryHistory(options: QueryOptions): Promise<WakuMessage[] | null> {
|
||||
const opts = Object.assign(
|
||||
{
|
||||
pubsubTopic: DefaultPubsubTopic,
|
||||
|
|
Loading…
Reference in New Issue