Generic type for getting the type of object that the wallet.connect method takes as the first argument.
wallet.connect
type WalletConnectionOption<T extends WalletId> = T extends "walletConnect" ? StandaloneWCConnectOptions : T extends "smart" ? SmartWalletConnectionOptions : T extends "inApp" | "embedded" ? InAppWalletConnectionOptions : T extends typeof COINBASE ? | InjectedConnectOptions | CoinbaseSDKWalletConnectionOptions : T extends InjectedSupportedWalletIds & WCSupportedWalletIds ? InjectedConnectOptions | WCConnectOptions : T extends InjectedSupportedWalletIds ? InjectedConnectOptions : T extends EcosystemWalletId ? EcosystemWalletConnectionOptions : WCConnectOptions;
type X = WalletConnectionOption<"io.metamask">;