Skip to content

Commit

Permalink
chore: update typescript (#1782)
Browse files Browse the repository at this point in the history
  • Loading branch information
LufyCZ authored Dec 18, 2024
1 parent 9fbfb08 commit 2191b86
Show file tree
Hide file tree
Showing 19 changed files with 388 additions and 384 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@
"https://www.artillery.io/schema.json": [
"file:///home/feedme/sushi/sushiswap/apis/router/test/load.yml"
]
}
},
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion apis/token-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"devDependencies": {
"@tsconfig/esm": "1.0.4",
"@tsconfig/strictest": "2.0.2",
"typescript": "5.5.4",
"typescript": "5.7.2",
"vercel": "35.2.1"
}
}
2 changes: 1 addition & 1 deletion apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"serve": "14.2.0",
"storybook": "7.4.6",
"tailwindcss": "3.3.2",
"typescript": "5.5.4",
"typescript": "5.7.2",
"vite": "4.3.9"
}
}
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"schema-dts": "1.1.2",
"tailwindcss": "3.3.2",
"tsx": "4.19.0",
"typescript": "5.4.5",
"typescript": "5.7.2",
"vitest": "2.0.5"
}
}
3 changes: 0 additions & 3 deletions apps/web/src/app/(cms)/academy/[article-slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
}, []),
},
twitter: {
app: {
id: {},
},
card: isMediaVideo(article.cover.provider_metadata)
? 'player'
: 'summary_large_image',
Expand Down
3 changes: 0 additions & 3 deletions apps/web/src/app/(cms)/blog/[article-slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
}, []),
},
twitter: {
app: {
id: {},
},
card: isMediaVideo(article.cover.provider_metadata)
? 'player'
: 'summary_large_image',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const CurrencyIcon = ({
width: `${width}px`,
height: `${height}px`,
background: hashStringToColor(
`${currency?.symbol} ${currency?.name}` ?? '??',
currency ? `${currency.symbol} ${currency.name}` : '??',
),
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const Icon = ({ currency, height = 40, width = 40 }: IconProps) => {
width: `${width}px`,
height: `${height}px`,
background: hashStringToColor(
`${currency?.symbol} ${currency?.name}` ?? '??',
currency ? `${currency.symbol} ${currency.name}` : '??',
),
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export type Props = Parameters<typeof useEnsName<PublicWagmiConfig>>[0] & {
children:
| ReactNode
| ReactNode[]
| ((payload: ReturnType<typeof useEnsName>) => JSX.Element)
| ((
payload: ReturnType<typeof useEnsName<PublicWagmiConfig>>,
) => JSX.Element)
}

export const AddressToEnsResolver = ({
Expand Down
12 changes: 7 additions & 5 deletions apps/web/src/ui/swap/simple/simple-swap-trade-review-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,16 +336,18 @@ export const SimpleSwapTradeReviewDialog: FC<{
>
{isFetching ? (
<SkeletonBox className="h-4 py-0.5 w-[60px] rounded-md" />
) : (
) : trade ? (
`${
trade?.priceImpact?.lessThan(ZERO)
trade.priceImpact?.lessThan(ZERO)
? '+'
: trade?.priceImpact?.greaterThan(ZERO)
: trade.priceImpact?.greaterThan(ZERO)
? '-'
: ''
}${Math.abs(
Number(trade?.priceImpact?.toFixed(2)),
)}%` ?? '-'
Number(trade.priceImpact?.toFixed(2)),
)}%`
) : (
'-'
)}
</span>
</List.KeyValue>
Expand Down
2 changes: 1 addition & 1 deletion config/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"devDependencies": {
"@types/eslint": "8.44.4",
"@types/node": "20",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"just-pnpm": "1.0.2",
"sort-package-json": "2.6.0",
"tsx": "4.19.0",
"turbo": "2.0.5"
"turbo": "2.0.5",
"typescript": "5.7.2"
},
"packageManager": "[email protected]",
"engines": {
Expand All @@ -37,7 +38,7 @@
"pnpm": {
"overrides": {
"graphql": "16.6.0",
"typescript": "5.5.4",
"typescript": "5.7.2",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/graph-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@
"@types/node": "20",
"tsc-alias": "1.8.10",
"tsx": "4.19.0",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"react-dom": "18.2.0",
"sushi": "4.1.12",
"tailwindcss": "3.3.2",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"peerDependencies": {
"react": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"sushi": "4.1.12",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"peerDependencies": {
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/steer-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@types/node": "20",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"peerDependencies": {
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/telemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@types/react-dom": "18.2.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.5.4"
"typescript": "5.7.2"
},
"peerDependencies": {
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"react-dom": "18.2.0",
"sushi": "4.1.12",
"tailwindcss": "3.3.2",
"typescript": "5.5.4",
"typescript": "5.7.2",
"wagmi": "2.12.10"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 2191b86

Please sign in to comment.