Skip to content

Commit

Permalink
update ts
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-schrammel committed Sep 4, 2024
1 parent 01a0c9f commit f8b2d4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 0 additions & 4 deletions src/components/DappBrowser/search/results/SearchResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
};

Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand All @@ -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<compat/typescript>":
version: 5.1.6
resolution: "typescript@patch:typescript@npm%3A5.1.6#optional!builtin<compat/typescript>::version=5.1.6&hash=5da071"
"typescript@patch:typescript@npm%3A5.5.4#optional!builtin<compat/typescript>":
version: 5.5.4
resolution: "typescript@patch:typescript@npm%3A5.5.4#optional!builtin<compat/typescript>::version=5.5.4&hash=b45daf"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/c2bded58ab897a8341fdbb0c1d92ea2362f498cfffebdc8a529d03e15ea2454142dfbf122dabbd9a5cb79b7123790d27def16e11844887d20636226773ed329a
checksum: 10c0/10dd9881baba22763de859e8050d6cb6e2db854197495c6f1929b08d1eb2b2b00d0b5d9b0bcee8472f1c3f4a7ef6a5d7ebe0cfd703f853aa5ae465b8404bc1ba
languageName: node
linkType: hard

Expand Down

0 comments on commit f8b2d4c

Please sign in to comment.