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 "com.coinbase.wallet" ? | InjectedConnectOptions | CoinbaseSDKWalletConnectionOptions : T extends InjectedSupportedWalletIds & WCSupportedWalletIds ? InjectedConnectOptions | WCConnectOptions : T extends InjectedSupportedWalletIds ? InjectedConnectOptions : WCConnectOptions;
type X = WalletConnectionOption<"io.metamask">;