Params (param + callback) available to storage (#524)
* Params (param + callback) available to storage * Be more explicit in types for storage * subscriptionId: number
This commit is contained in:
@@ -14,8 +14,10 @@ import SubmittableExtrinsic from './SubmittableExtrinsic';
|
|||||||
|
|
||||||
export interface QueryableStorageFunction extends StorageFunction {
|
export interface QueryableStorageFunction extends StorageFunction {
|
||||||
(arg?: any): Promise<Codec | null | undefined>;
|
(arg?: any): Promise<Codec | null | undefined>;
|
||||||
|
(cb: (value: any) => any): Promise<number>;
|
||||||
|
(arg: any, cb: (value: any) => any): Promise<number>;
|
||||||
at: (hash: Hash, arg?: any) => Promise<Codec | null | undefined>;
|
at: (hash: Hash, arg?: any) => Promise<Codec | null | undefined>;
|
||||||
unsubscribe: (subscriptionId: any) => Promise<any>;
|
unsubscribe: (subscriptionId: number) => Promise<any>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface QueryableModuleStorage {
|
export interface QueryableModuleStorage {
|
||||||
|
|||||||
Reference in New Issue
Block a user