diff --git a/lib.esm/abi/coders/abstract-coder.d.ts b/lib.esm/abi/coders/abstract-coder.d.ts index 3eaa07c288..17b3db699b 100644 --- a/lib.esm/abi/coders/abstract-coder.d.ts +++ b/lib.esm/abi/coders/abstract-coder.d.ts @@ -3,6 +3,7 @@ import type { BigNumberish, BytesLike } from "../../utils/index.js"; * @_ignore: */ export declare const WordSize: number; +type Cast = T extends U ? T : U; /** * A [[Result]] is a sub-class of Array, which allows accessing any * of its values either positionally by its index or, if keys are @@ -38,11 +39,11 @@ export declare class Result extends Array { /** * @_ignore */ - filter(callback: (el: any, index: number, array: Result) => boolean, thisArg?: any): Result; + filter(predicate: (this: This, value: any, index: number, array: this) => boolean, thisArg?: This): any[]; /** * @_ignore */ - map(callback: (el: any, index: number, array: Result) => T, thisArg?: any): Array; + map(callbackfn: (this: This, value: any, index: number, array: this) => U, thisArg?: This): Cast<{ [K in keyof this]: U }, U[]>; /** * Returns the value for %%name%%. *