Generic type for getting the type of object that the wallet.autoConnect method takes as the first argument.
wallet.autoConnect
type WalletAutoConnectionOption<T extends WalletId> = T extends "walletConnect" ? WCAutoConnectOptions : T extends "smart" ? SmartWalletConnectionOptions : T extends "inApp" | "embedded" ? InAppWalletAutoConnectOptions : T extends typeof COINBASE ? | InjectedConnectOptions | CoinbaseSDKWalletConnectionOptions : T extends InjectedSupportedWalletIds & WCSupportedWalletIds ? InjectedConnectOptions | WCAutoConnectOptions : T extends InjectedSupportedWalletIds ? InjectedConnectOptions : T extends EcosystemWalletId ? EcosystemWalletAutoConnectOptions : WCAutoConnectOptions;
type X = WalletAutoConnectionOption<"io.metamask">;