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 typeof COINBASE
?
| InjectedConnectOptions
? InjectedConnectOptions | WCAutoConnectOptions
? InjectedConnectOptions
: T extends EcosystemWalletId
? EcosystemWalletAutoConnectOptions

Example

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