Skip to content

Commit

Permalink
feat: add typing to the DappChainContext
Browse files Browse the repository at this point in the history
  • Loading branch information
solidovic committed Jan 21, 2025
1 parent c719c77 commit 7ef2e15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/web3/web3-provider/dapp-chain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import { useAppChainManager } from './use-app-chain-manager';
import { LidoSDKProvider } from './lido-sdk';
import { LidoSDKL2Provider } from './lido-sdk-l2';

export const DappChainContext = createContext<any | null>(null);
type DappChainContextValue = ReturnType<typeof useAppChainManager>;

export const DappChainContext = createContext<DappChainContextValue | null>(
null,
);
DappChainContext.displayName = 'DappChainContext';

export const SupportL1Chains: React.FC<React.PropsWithChildren> = ({
Expand Down

0 comments on commit 7ef2e15

Please sign in to comment.