Generic type for getting the type of object that the createWallet function takes as the second argument. ( the first argument being the wallet id )
createWallet
type WalletCreationOptions<T extends WalletId> = T extends "smart" ? SmartWalletOptions : T extends "inApp" | "embedded" ? InAppWalletCreationOptions : T extends typeof COINBASE ? CoinbaseWalletCreationOptions : T extends "adapter" ? AdapterWalletOptions : T extends DeepLinkSupportedWalletIds ? DeepLinkSupportedWalletCreationOptions : T extends EcosystemWalletId ? EcosystemWalletCreationOptions | undefined : undefined;
type X = WalletCreationOptions<"io.metamask">;