Rename type before introducing CreateOptions

This commit is contained in:
Franck Royer 2021-06-09 13:30:46 +10:00
parent eb521b4dbd
commit f0f14f9995
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 2 additions and 2 deletions

View File

@ -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,