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
?
: T extends EcosystemWalletId

Example

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