Fixed VSCode lint vs tsc discrepency (#4153, #4156, #4158, #4159).

This commit is contained in:
Richard Moore 2023-08-14 20:05:38 -04:00
parent 4eb84da865
commit 203dfc33b9

@ -1154,7 +1154,7 @@ export class Interface {
const keys: Array<null | string> = [ ];
let nonIndexedIndex = 0, indexedIndex = 0;
fragment.inputs.forEach((param, index) => {
let value: null | Indexed = null;
let value: null | Indexed | Error = null;
if (param.indexed) {
if (resultIndexed == null) {
value = new Indexed(null);
@ -1165,14 +1165,14 @@ export class Interface {
} else {
try {
value = resultIndexed[indexedIndex++];
} catch (error) {
} catch (error: any) {
value = error;
}
}
} else {
try {
value = resultNonIndexed[nonIndexedIndex++];
} catch (error) {
} catch (error: any) {
value = error;
}
}