(hopefully) fix d.ts generation with explicit imports (#394)

This commit is contained in:
Jaco Greeff
2018-11-13 11:28:06 +01:00
committed by GitHub
parent d3d4f992ed
commit de284fb2f9
3 changed files with 17 additions and 7 deletions
+5 -3
View File
@@ -2,8 +2,10 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import { RpcRxInterface, RpcRxInterface$Method, RpcRxInterface$Section } from '@polkadot/rpc-rx/types';
import { Extrinsics } from '@polkadot/extrinsics/types';
import { RpcMethod } from '@polkadot/jsonrpc/types';
import { RpcRxInterface, RpcRxInterface$Method, RpcRxInterface$Section } from '@polkadot/rpc-rx/types';
import { Storage } from '@polkadot/storage/types';
import { EMPTY, Observable, combineLatest, from } from 'rxjs';
import { defaultIfEmpty, map } from 'rxjs/operators';
@@ -37,8 +39,8 @@ export default class ApiBase {
this.whenReady = from(this.init());
}
static extrinsics = extrinsicsStatic;
static storage = storageStatic;
static extrinsics: Extrinsics = extrinsicsStatic;
static storage: Storage = storageStatic;
// FIXME This logic is duplicated in api-rx, since that should derive
// from that base, it should be removed when the actual extend is done