mirror of
https://github.com/logos-messaging/waku-react.git
synced 2026-01-04 07:03:07 +00:00
26 lines
665 B
TypeScript
26 lines
665 B
TypeScript
|
|
import { RelayCreateOptions, WakuOptions } from "@waku/core";
|
||
|
|
import type { CreateOptions } from "@waku/create";
|
||
|
|
import type { Protocols, Waku } from "@waku/interfaces";
|
||
|
|
|
||
|
|
export type HookState = {
|
||
|
|
isLoading: boolean;
|
||
|
|
error: null | string;
|
||
|
|
};
|
||
|
|
|
||
|
|
export type CrateWakuHook<T extends Waku> = HookState & {
|
||
|
|
node: null | T;
|
||
|
|
};
|
||
|
|
|
||
|
|
export type BootstrapNodeOptions<T = {}> = {
|
||
|
|
options?: T;
|
||
|
|
protocols?: Protocols[];
|
||
|
|
};
|
||
|
|
|
||
|
|
export type LightNodeOptions = CreateOptions & WakuOptions;
|
||
|
|
export type RelayNodeOptions = CreateOptions &
|
||
|
|
WakuOptions &
|
||
|
|
Partial<RelayCreateOptions>;
|
||
|
|
export type FullNodeOptions = CreateOptions &
|
||
|
|
WakuOptions &
|
||
|
|
Partial<RelayCreateOptions>;
|