Hierarchy

Properties

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

Type declaration

    • (): Promise<Peer[]>
    • Returns Promise<Peer[]>

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

Type declaration

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

      Parameters

      • decoders: IDecoder<T>[]
      • callback: ((message: Promise<undefined | T>) => boolean | void | Promise<boolean | void>)
          • (message: Promise<undefined | T>): boolean | void | Promise<boolean | void>
          • Parameters

            • message: Promise<undefined | T>

            Returns boolean | void | Promise<boolean | void>

      • Optional options: StoreQueryOptions

      Returns Promise<void>

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

Type declaration

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

Type declaration

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

      Parameters

      • decoders: IDecoder<T>[]
      • callback: ((message: T) => boolean | void | Promise<boolean | void>)
          • (message: T): boolean | void | Promise<boolean | void>
          • Parameters

            • message: T

            Returns boolean | void | Promise<boolean | void>

      • Optional options: StoreQueryOptions

      Returns Promise<void>

Generated using TypeDoc