Skip to content

Commit 6aeec06

Browse files
committed
fix: fix type cast
1 parent fbfbd6c commit 6aeec06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/chain/useCoinChain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type UseCoinChainParameters = {
1515
}
1616

1717
type CoinBlockExplorer = {
18-
id?: number
18+
id: number
1919
name: string
2020
nativeCurrency: {
2121
name: string
@@ -71,7 +71,7 @@ export const getCoinChainQueryFn = async <TParams extends UseCoinChainParameters
7171
}
7272

7373
const otherBlockExplorers = await import('../../constants/blockExplorers/other.json').then(
74-
(m) => m.default as { [key: string]: CoinBlockExplorer },
74+
(m) => m.default as unknown as { [key: string]: CoinBlockExplorer },
7575
)
7676
return otherBlockExplorers[coinName] || null
7777
}

0 commit comments

Comments
 (0)