@particle-network/connectkit
Version:
10 lines (9 loc) • 502 B
TypeScript
import type { Connection, Connector, ErrorType, Evaluate } from '@particle-network/connector-core';
import type { Config } from '../createConfig';
export type ReconnectParameters = {
/** Connectors to attempt reconnect with */
connectors?: readonly Connector[] | undefined;
};
export type ReconnectReturnType = Evaluate<Connection>[];
export type ReconnectErrorType = ErrorType;
export declare function reconnect(config: Config, parameters?: ReconnectParameters): Promise<ReconnectReturnType>;