summaryrefslogtreecommitdiff
path: root/js/url.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/url.ts')
-rw-r--r--js/url.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/url.ts b/js/url.ts
index 5badaa6ea..8701f1930 100644
--- a/js/url.ts
+++ b/js/url.ts
@@ -71,12 +71,13 @@ export class URL {
const searchParams = new urlSearchParams.URLSearchParams(this.search);
for (const methodName of searchParamsMethods) {
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ /* eslint-disable @typescript-eslint/no-explicit-any */
const method: (...args: any[]) => any = searchParams[methodName];
- searchParams[methodName] = (...args: unknown[]): void => {
+ searchParams[methodName] = (...args: unknown[]): any => {
method.apply(searchParams, args);
this.search = searchParams.toString();
};
+ /* eslint-enable */
}
this._searchParams = searchParams;
}