Adjust submittable augmentation (#1806)

* Adjust submittable augmentation

* Add missing extends
This commit is contained in:
Jaco Greeff
2020-02-04 12:15:42 +01:00
committed by GitHub
parent cefeb37ae6
commit 6505e73355
2 changed files with 8 additions and 5 deletions
+5 -2
View File
@@ -22,8 +22,7 @@ export type BareOpts = boolean | Record<string, boolean>;
export type InterfaceTypes = keyof InterfaceRegistry;
export interface CallFunction {
(...args: any[]): Call;
export interface CallBase {
callIndex: Uint8Array;
meta: FunctionMetadataLatest;
method: string;
@@ -31,6 +30,10 @@ export interface CallFunction {
toJSON: () => any;
}
export interface CallFunction extends CallBase {
(...args: any[]): Call;
}
export type Calls = Record<string, CallFunction>;
export type ModulesWithCalls = Record<string, Calls>;