Docs

WalletAutoConnectionOption

Generic type for getting the type of object that the wallet.autoConnect method takes as the first argument.

type WalletAutoConnectionOption<T extends WalletId> =
T extends "walletConnect"
: T extends "smart"
: T extends "inApp" | "embedded"
: T extends "com.coinbase.wallet"
?
| InjectedConnectOptions
? InjectedConnectOptions | WCAutoConnectOptions
? InjectedConnectOptions

Example

type X = WalletAutoConnectionOption<"io.metamask">;