diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-06-02 01:13:36 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-01 11:13:36 -0400 |
commit | d438a6d259f79d1dd98d50ada01debbe24ca5a29 (patch) | |
tree | 04484b78fa46915c25d23547b7beb9f544091a2e /js/url.ts | |
parent | 79f770b178da2d74f10eaa5668b3c3521ab6bb59 (diff) |
Upgrade TypeScript to 3.5.1 (#2437)
Diffstat (limited to 'js/url.ts')
-rw-r--r-- | js/url.ts | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |