fix formatting

This commit is contained in:
Sasha 2023-06-22 01:53:53 +02:00
parent 406ed469cf
commit a6a95654f2
No known key found for this signature in database
3 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import type { ProtocolCreateOptions, Protocols, Waku } from "@waku/interfaces";
import type { RelayCreateOptions } from "@waku/relay";
import type { waku } from "@waku/sdk";
import type { Protocols, Waku, ProtocolCreateOptions } from "@waku/interfaces";
export type HookState = {
isLoading: boolean;

View File

@ -1,6 +1,6 @@
import React from "react";
import { waitForRemotePeer, createLightNode, createRelayNode } from "@waku/sdk";
import type { LightNode, RelayNode, Waku } from "@waku/interfaces";
import { createLightNode, createRelayNode, waitForRemotePeer } from "@waku/sdk";
import type {
BootstrapNodeOptions,

View File

@ -58,8 +58,7 @@ export const useFilterMessages = (
let unsubscribe: null | Unsubscribe = null;
setLoading(true);
(node.filter
.subscribe([decoder], pushMessage) as Promise<Unsubscribe>)
(node.filter.subscribe([decoder], pushMessage) as Promise<Unsubscribe>)
.then((unsubscribeFn) => {
setLoading(false);
unsubscribe = unsubscribeFn;