diff --git a/package.json b/package.json index 52c229cff23..f415f7a86bd 100644 --- a/package.json +++ b/package.json @@ -369,7 +369,7 @@ "ts-jest": "29.1.1", "ts-loader": "9.5.1", "ts-migrate": "0.1.26", - "typescript": "5.1.6", + "typescript": "5.5.4", "typescript-coverage-report": "0.6.1", "webpack": "5.94.0", "webpack-cli": "5.1.4" diff --git a/src/components/DappBrowser/search/results/SearchResults.tsx b/src/components/DappBrowser/search/results/SearchResults.tsx index e7bf159980f..44203c49bec 100644 --- a/src/components/DappBrowser/search/results/SearchResults.tsx +++ b/src/components/DappBrowser/search/results/SearchResults.tsx @@ -54,12 +54,9 @@ const search = (query: string, dapps: Dapp[], numberOfResults = 4): Dapp[] => { if (b?.trending === true && a?.trending !== true) return 1; if (a?.trending === true && b?.trending !== true) return -1; - // @ts-expect-error: Need to fix these types const relevanceDiff = b.relevance - a.relevance; if (relevanceDiff === 0) { - // @ts-expect-error: Same here const aWordCount = a.name.split(' ').length; - // @ts-expect-error: Same here const bWordCount = b.name.split(' ').length; return aWordCount - bWordCount; } @@ -74,7 +71,6 @@ const search = (query: string, dapps: Dapp[], numberOfResults = 4): Dapp[] => { return [{ url: query, urlDisplay: query, name: query, isDirect: true } as unknown as Dapp, ...(dappResults as Dapp[])]; } - // @ts-expect-error: Same here return filteredDapps; }; diff --git a/yarn.lock b/yarn.lock index 9d7df69de4f..d0f43fa730a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8085,7 +8085,7 @@ __metadata: ts-loader: "npm:9.5.1" ts-migrate: "npm:0.1.26" tty-browserify: "npm:0.0.0" - typescript: "npm:5.1.6" + typescript: "npm:5.5.4" typescript-coverage-report: "npm:0.6.1" url: "npm:0.10.3" url-join: "npm:4.0.1" @@ -24691,13 +24691,13 @@ react-native-safe-area-view@rainbow-me/react-native-safe-area-view: languageName: node linkType: hard -"typescript@npm:5.1.6": - version: 5.1.6 - resolution: "typescript@npm:5.1.6" +"typescript@npm:5.5.4": + version: 5.5.4 + resolution: "typescript@npm:5.5.4" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/45ac28e2df8365fd28dac42f5d62edfe69a7203d5ec646732cadc04065331f34f9078f81f150fde42ed9754eed6fa3b06a8f3523c40b821e557b727f1992e025 + checksum: 10c0/422be60f89e661eab29ac488c974b6cc0a660fb2228003b297c3d10c32c90f3bcffc1009b43876a082515a3c376b1eefcce823d6e78982e6878408b9a923199c languageName: node linkType: hard @@ -24721,13 +24721,13 @@ react-native-safe-area-view@rainbow-me/react-native-safe-area-view: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A5.1.6#optional!builtin": - version: 5.1.6 - resolution: "typescript@patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071" +"typescript@patch:typescript@npm%3A5.5.4#optional!builtin": + version: 5.5.4 + resolution: "typescript@patch:typescript@npm%3A5.5.4#optional!builtin::version=5.5.4&hash=b45daf" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/c2bded58ab897a8341fdbb0c1d92ea2362f498cfffebdc8a529d03e15ea2454142dfbf122dabbd9a5cb79b7123790d27def16e11844887d20636226773ed329a + checksum: 10c0/10dd9881baba22763de859e8050d6cb6e2db854197495c6f1929b08d1eb2b2b00d0b5d9b0bcee8472f1c3f4a7ef6a5d7ebe0cfd703f853aa5ae465b8404bc1ba languageName: node linkType: hard