From aee054d9d6d9912f1d0bab548cdc9dac7d12c419 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Wed, 7 Sep 2022 12:17:33 +1000 Subject: [PATCH] feat: merge gossipsub type in CreateOptions interface --- src/lib/waku_relay/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/waku_relay/index.ts b/src/lib/waku_relay/index.ts index 4d710deaf5..9be2757349 100644 --- a/src/lib/waku_relay/index.ts +++ b/src/lib/waku_relay/index.ts @@ -18,7 +18,7 @@ import * as constants from "./constants"; const log = debug("waku:relay"); -export interface CreateOptions { +export type CreateOptions = { /** * The PubSub Topic to use. Defaults to {@link DefaultPubSubTopic}. * @@ -34,7 +34,7 @@ export interface CreateOptions { */ pubSubTopic?: string; decryptionKeys?: Array; -} +} & GossipsubOpts; /** * Implements the [Waku v2 Relay protocol](https://rfc.vac.dev/spec/11/). @@ -59,7 +59,7 @@ export class WakuRelay extends GossipSub { [contentTopic: string]: Set<(message: WakuMessage) => void>; }; - constructor(options?: Partial) { + constructor(options?: Partial) { options = Object.assign(options ?? {}, { // Ensure that no signature is included nor expected in the messages. globalSignaturePolicy: SignaturePolicy.StrictNoSign,