UNPKG

@nomyx/gun-sync

Version:

A lightweight, powerful library for synchronizing application state in real-time using Gun.js.

15 lines (14 loc) 370 B
import { IGunInstance } from 'gun'; /** * Configuration for the sync instance. */ export interface SyncConfig { peers: string[]; } /** * Creates and initializes a Gun instance. * @param config - The configuration object for Gun peers. * @returns A Gun instance. */ export declare function createSync(config: SyncConfig): IGunInstance; export * from './react';