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:
committed by
Amaury Martiny
parent
7fc67826d7
commit
141f761063
Vendored
+1
-1
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user