Interface IStore

Hierarchy

Properties

addLibp2pEventListener: (<K>(type: K, listener: null | EventHandler<Libp2pEvents<ServiceMap>[K]>, options?: boolean | AddEventListenerOptions) => void)

Type declaration

    • <K>(type: K, listener: null | EventHandler<Libp2pEvents<ServiceMap>[K]>, options?: boolean | AddEventListenerOptions): void
    • Type Parameters

      • K extends keyof Libp2pEvents<ServiceMap>

      Parameters

      • type: K
      • listener: null | EventHandler<Libp2pEvents<ServiceMap>[K]>
      • Optional options: boolean | AddEventListenerOptions

      Returns void

multicodec: string
peerStore: PeerStore
peers: (() => Promise<Peer[]>)

Type declaration

queryGenerator: (<T>(decoders: IDecoder<T>[], options?: StoreQueryOptions) => AsyncGenerator<Promise<undefined | T>[], any, unknown>)

Type declaration

queryWithOrderedCallback: (<T>(decoders: IDecoder<T>[], callback: ((message: T) => boolean | void | Promise<boolean | void>), options?: StoreQueryOptions) => Promise<void>)

Type declaration

queryWithPromiseCallback: (<T>(decoders: IDecoder<T>[], callback: ((message: Promise<undefined | T>) => boolean | void | Promise<boolean | void>), options?: StoreQueryOptions) => Promise<void>)

Type declaration

removeLibp2pEventListener: (<K>(type: K, listener?: null | EventHandler<Libp2pEvents<ServiceMap>[K]>, options?: boolean | EventListenerOptions) => void)

Type declaration

    • <K>(type: K, listener?: null | EventHandler<Libp2pEvents<ServiceMap>[K]>, options?: boolean | EventListenerOptions): void
    • Type Parameters

      • K extends keyof Libp2pEvents<ServiceMap>

      Parameters

      • type: K
      • Optional listener: null | EventHandler<Libp2pEvents<ServiceMap>[K]>
      • Optional options: boolean | EventListenerOptions

      Returns void

Generated using TypeDoc