gun/lib/load.d.ts
Orimay d53d157f19
New GUN typings (#1205)
* New GUN typings

* Fixing comments

* Gun schema is now supported

Co-authored-by: dbaranov <dbaranov@bellintegrator.com>
2022-02-18 23:17:41 -08:00

14 lines
470 B
TypeScript

import {} from '../types/gun/IGunChain';
declare module '../types/gun/IGunChain' {
export interface IGunChain<TNode, TChainParent, TGunInstance, TKey> {
/**
* > Warning: Dependency script for browser: <script src="/gun/lib/open.js"></script>`
*
* Loads the full object once. It is the same as open but with the behavior of once
*/
load(
callback: (data: TNode) => void
): IGunChain<TNode, TChainParent, TGunInstance, TKey>;
}
}