We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbfbd6c commit 6aeec06Copy full SHA for 6aeec06
src/hooks/chain/useCoinChain.ts
@@ -15,7 +15,7 @@ type UseCoinChainParameters = {
15
}
16
17
type CoinBlockExplorer = {
18
- id?: number
+ id: number
19
name: string
20
nativeCurrency: {
21
@@ -71,7 +71,7 @@ export const getCoinChainQueryFn = async <TParams extends UseCoinChainParameters
71
72
73
const otherBlockExplorers = await import('../../constants/blockExplorers/other.json').then(
74
- (m) => m.default as { [key: string]: CoinBlockExplorer },
+ (m) => m.default as unknown as { [key: string]: CoinBlockExplorer },
75
)
76
return otherBlockExplorers[coinName] || null
77
0 commit comments