summaryrefslogtreecommitdiff
path: root/js/url.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/url.ts')
-rw-r--r--js/url.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/url.ts b/js/url.ts
index 03c3606c4..235498c40 100644
--- a/js/url.ts
+++ b/js/url.ts
@@ -67,17 +67,16 @@ export class URL {
private _parts: URLParts;
private _searchParams!: urlSearchParams.URLSearchParams;
- private _updateSearchParams() {
+ private _updateSearchParams(): void {
const searchParams = new urlSearchParams.URLSearchParams(this.search);
for (const methodName of searchParamsMethods) {
- // tslint:disable:no-any
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
const method: (...args: any[]) => any = searchParams[methodName];
- searchParams[methodName] = (...args: any[]) => {
+ searchParams[methodName] = (...args: unknown[]) => {
method.apply(searchParams, args);
this.search = searchParams.toString();
};
- // tslint:enable
}
this._searchParams = searchParams;
}