gun/lib/not.d.ts
Dimitris Apostolou 9e616ea3a9
Fix typos (#1299)
2023-02-25 17:09:54 -08:00

18 lines
817 B
TypeScript

import {} from '../types/gun/IGunChain';
declare module '../types/gun/IGunChain' {
export interface IGunChain<TNode, TChainParent, TGunInstance, TKey> {
/**
* > Warning: `.not` has no guarantees, since data could theoretically exist on an unrelated
* peer that we have no knowledge of. If you only have one server, and data is synced
* through it, then you have a pretty reasonable assurance that a not found means that
* the data doesn't exist yet. Just be mindful of how you use it
*
* @param callback If there's reason to believe the data doesn't exist, the callback will be
* invoked. This can be used as a check to prevent implicitly writing data
*/
not(
callback: (key: string) => void
): IGunChain<TNode, TChainParent, TGunInstance, TKey>;
}
}