UNPKG

@nomyx/gun-sync

Version:

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

16 lines (15 loc) 412 B
import React, { ReactNode } from 'react'; import { IGunInstance } from 'gun'; interface GunProviderProps { peers: string[]; children: ReactNode; } /** * Provides a Gun instance to all descendant components. */ export declare const GunProvider: React.FC<GunProviderProps>; /** * A hook to access the Gun instance provided by GunProvider. */ export declare const useGun: () => IGunInstance; export {};