From 6ade56e7a871fdd03fe706e5961da8e40f795787 Mon Sep 17 00:00:00 2001 From: KillariDev Date: Tue, 13 Feb 2024 14:35:52 +0200 Subject: [PATCH] fix abstract coder filter and map types --- lib.esm/abi/coders/abstract-coder.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib.esm/abi/coders/abstract-coder.d.ts b/lib.esm/abi/coders/abstract-coder.d.ts index 3eaa07c28..8673c88b5 100644 --- a/lib.esm/abi/coders/abstract-coder.d.ts +++ b/lib.esm/abi/coders/abstract-coder.d.ts @@ -38,11 +38,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%%. *