@particle-network/connectkit
Version:
8 lines (7 loc) • 440 B
TypeScript
import type { Config } from '../createConfig';
import { type GetConnectionsReturnType } from './getConnections';
export type WatchConnectionsParameters = {
onChange(connections: GetConnectionsReturnType, prevConnections: GetConnectionsReturnType): void;
};
export type WatchConnectionsReturnType = () => void;
export declare function watchConnections(config: Config, parameters: WatchConnectionsParameters): WatchConnectionsReturnType;