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
+3 -3
View File
@@ -2,7 +2,7 @@
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { AnyFunction, CallFunction } from '@polkadot/types/types';
import { AnyFunction, CallBase } from '@polkadot/types/types';
import { SubmittableExtrinsic } from '../submittable/types';
import { ApiTypes } from './base';
@@ -10,9 +10,9 @@ import { ApiTypes } from './base';
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface AugmentedSubmittables<ApiType extends ApiTypes> { }
export type AugmentedSubmittable<T extends AnyFunction> = T & CallFunction;
export type AugmentedSubmittable<T extends AnyFunction> = T & CallBase;
export interface SubmittableExtrinsicFunction<ApiType extends ApiTypes> extends CallFunction {
export interface SubmittableExtrinsicFunction<ApiType extends ApiTypes> extends CallBase {
(...params: any[]): SubmittableExtrinsic<ApiType>;
}