IStore: IBaseProtocolSDK & { protocol: IBaseProtocolCore; queryGenerator: (<T>(decoders,
options?) => AsyncGenerator<Promise<T | undefined>[]>); queryWithOrderedCallback: (<T>(decoders,
callback,
options?) => Promise<void>); queryWithPromiseCallback: (<T>(decoders,
callback,
options?) => Promise<void>); createCursor(message): Uint8Array; } Type declaration
queryGenerator: (<T>(decoders, options?) => AsyncGenerator<Promise<T | undefined>[]>)
- <T>(decoders, options?): AsyncGenerator<Promise<T | undefined>[]>
Returns AsyncGenerator<Promise<T | undefined>[]>
queryWithOrderedCallback: (<T>(decoders, callback, options?) => Promise<void>)
- <T>(decoders, callback, options?): Promise<void>
Parameters
- decoders: IDecoder<T>[]
- callback: ((message) => Promise<void | boolean> | boolean | void)
- (message): Promise<void | boolean> | boolean | void
Returns Promise<void | boolean> | boolean | void
Optional
options: Partial<QueryRequestParams>
Returns Promise<void>
queryWithPromiseCallback: (<T>(decoders, callback, options?) => Promise<void>)
- <T>(decoders, callback, options?): Promise<void>
Parameters
- decoders: IDecoder<T>[]
- callback: ((message) => Promise<void | boolean> | boolean | void)
- (message): Promise<void | boolean> | boolean | void
Parameters
- message: Promise<T | undefined>
Returns Promise<void | boolean> | boolean | void
Optional
options: Partial<QueryRequestParams>
Returns Promise<void>
createCursor:function
- createCursor(message): Uint8Array
Returns Uint8Array