ref(TS) Improve TS (#13167)

Fix some errors. Remove @ts-ignores
Convert some files to TS
Remove some eslint-disables
This commit is contained in:
Robert Pintilii
2023-04-04 17:08:59 +03:00
committed by GitHub
parent a828cacbfe
commit 3a2a129f44
73 changed files with 300 additions and 357 deletions

View File

@@ -1,5 +1,3 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { Linking } from 'react-native';
import logger from './logger';

View File

@@ -42,11 +42,11 @@ export function parseURLParams(
}
}
paramParts.forEach(part => {
paramParts.forEach((part: string) => {
const param = part.split('=');
const key = param[0];
if (!key || key.split('.').some(k => blacklist.includes(k))) {
if (!key || key.split('.').some((k: string) => blacklist.includes(k))) {
return;
}

View File

@@ -263,7 +263,6 @@ export function parseStandardURIString(str: string) {
authority = authority.substring(userinfoEndIndex + 1);
}
// @ts-ignore
obj.host = authority;
// port