gun.load() typings
This commit is contained in:
parent
6e7497eb39
commit
36ca9b438f
1 changed files with 5 additions and 0 deletions
|
|
@ -38,6 +38,9 @@ export interface Soul {
|
|||
export type OpenListenerData = Primitive | null | OpenListenerDataObj
|
||||
export type OpenListener = (data: OpenListenerData, key: string) => void
|
||||
|
||||
export type LoadListenerData = OpenListenerData
|
||||
export type LoadListener = (data: LoadListenerData, key: string) => void
|
||||
|
||||
export interface GUNNodeBase {
|
||||
_: Soul
|
||||
|
||||
|
|
@ -48,6 +51,8 @@ export interface GUNNodeBase {
|
|||
|
||||
open(this: GUNNode, cb?: OpenListener): GUNNode
|
||||
|
||||
load(this: GUNNode, cb?: LoadListener): GUNNode
|
||||
|
||||
off(): void
|
||||
user(): UserGUNNode
|
||||
user(epub: string): GUNNode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue