ref(TS) Convert some base features to TS (#12138)

This commit is contained in:
Robert Pintilii
2022-09-14 10:54:56 +03:00
committed by GitHub
parent 5502601fb3
commit 95084e1004
56 changed files with 352 additions and 312 deletions

View File

@@ -24,7 +24,7 @@ const blacklist = [ '__proto__', 'constructor', 'prototype' ];
export function parseURLParams(
url: URL | string,
dontParse = false,
source = 'hash'): Object {
source = 'hash') {
if (typeof url === 'string') {
// eslint-disable-next-line no-param-reassign
url = new URL(url);