Types bundle derive (#2932)

* added derives typesBundle overrides

* fix lint
This commit is contained in:
Alex D
2020-12-09 11:01:33 +01:00
committed by GitHub
parent a48eba101c
commit 6b4fd110a1
3 changed files with 249 additions and 2 deletions
+3
View File
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import type BN from 'bn.js';
import type { Observable } from 'rxjs';
import { H256 } from '../interfaces/runtime';
import { ChainProperties } from '../interfaces/system';
@@ -101,9 +102,11 @@ export interface OverrideVersionedType {
}
export type OverrideModuleType = Record<string, string>;
export type DeriveCustom = Record<string, Record<string, (instanceId: string, api: any) => (...args: any[]) => Observable<any>>>;
export interface OverrideBundleDefinition {
alias?: Record<string, OverrideModuleType>;
derives?: DeriveCustom;
rpc?: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>;
types?: OverrideVersionedType[];
}