Docs

WalletConnectionOption

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

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

Example

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