fix usage with typescript (#405)

* fix usage with typescript
- export Base within codec
- Codec is not generic
- use wildcard import for json rpc types

* remove unsued generic + remove unsued import

* import Codec instead of Base

* use correct import for codec type

* replace Base by Codec import and usage

* remove unsued import
This commit is contained in:
Mario Neises
2018-11-20 17:04:28 +01:00
committed by Amaury Martiny
parent 7fc67826d7
commit 141f761063
5 changed files with 8 additions and 10 deletions
-1
View File
@@ -3,7 +3,6 @@
// of the ISC license. See the LICENSE file for details.
import { ReplaySubject, Observable } from 'rxjs';
import interfaces from '@polkadot/jsonrpc/types';
export type RpcRxInterface$Method = (...params: Array<any>) => Observable<any> | ReplaySubject<any>;