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 -1
View File
@@ -29,4 +29,4 @@ export type Constructor<T = Codec> = { new(value?: any): T };
export type ConstructorDef<T = Codec> = { [index: string]: Constructor<T> };
export type TypeDef<T = Codec> = { [index: string]: Codec<T> };
export type TypeDef = { [index: string]: Codec };