Bump deps (#1351)
This commit is contained in:
@@ -7,7 +7,7 @@ import { Global } from './../mock/types';
|
||||
declare const global: Global;
|
||||
|
||||
describe('http/polyfill', (): void => {
|
||||
let origFetch: GlobalFetch;
|
||||
let origFetch: any;
|
||||
|
||||
beforeEach((): void => {
|
||||
origFetch = global.fetch;
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Constructor } from '@polkadot/types/types';
|
||||
|
||||
export interface Global extends NodeJS.Global {
|
||||
WebSocket: Constructor<WebSocket>;
|
||||
fetch: GlobalFetch;
|
||||
fetch: any;
|
||||
}
|
||||
|
||||
export interface Mock {
|
||||
|
||||
@@ -37,9 +37,9 @@ export default class Struct<
|
||||
|
||||
public constructor (Types: S, value: V | Map<any, any> | any[] | string = {} as unknown as V, jsonMap: Map<keyof S, string> = new Map()) {
|
||||
const Clazzes = mapToTypeMap(Types);
|
||||
const decoded = Struct.decodeStruct(Clazzes, value, jsonMap);
|
||||
const decoded: T = Struct.decodeStruct(Clazzes, value, jsonMap);
|
||||
|
||||
super(Object.entries(decoded as any));
|
||||
super(Object.entries(decoded));
|
||||
|
||||
this._jsonMap = jsonMap;
|
||||
this._Types = Clazzes;
|
||||
|
||||
Reference in New Issue
Block a user