Skip to content

Commit 4c73304

Browse files
committed
Remove explicit return type annotations from support level functions
1 parent 08f205e commit 4c73304

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

website/src/supportedNetworks/utils.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,20 @@ export const getIconVariant = (networkId: string): 'mono' | 'branded' => {
4141
return MONO_ICON_NETWORKS.includes(networkId) ? 'mono' : 'branded'
4242
}
4343

44-
// Suport level for services
45-
export const getSubgraphsSupportLevel = (network: Network): 'none' | 'basic' | 'full' => {
44+
// Support level for services
45+
export const getSubgraphsSupportLevel = (network: Network) => {
4646
const hasSubgraphs = Boolean(network.services.subgraphs?.length || network.services.sps?.length)
47-
4847
if (!hasSubgraphs) return 'none'
4948
if (network.issuanceRewards) return 'full'
5049
return 'basic'
5150
}
52-
53-
export const getSubstreamsSupportLevel = (network: Network): 'none' | 'basic' | 'full' => {
51+
export const getSubstreamsSupportLevel = (network: Network) => {
5452
const substreamCount = network.services.substreams?.length || 0
5553
if (substreamCount === 0) return 'none'
5654
if (substreamCount >= 2) return 'full'
5755
return 'basic'
5856
}
59-
60-
export const getFirehoseSupportLevel = (network: Network): 'none' | 'basic' | 'full' => {
57+
export const getFirehoseSupportLevel = (network: Network) => {
6158
const firehoseCount = network.services.firehose?.length || 0
6259
if (firehoseCount === 0) return 'none'
6360
if (firehoseCount >= 2) return 'full'

0 commit comments

Comments
 (0)