WalletCreationOptions

Generic type for getting the type of object that the createWallet function takes as the second argument. ( the first argument being the wallet id )

type WalletCreationOptions<T extends WalletId> = T extends "smart"
: T extends "inApp" | "embedded"
: T extends typeof COINBASE
: T extends "adapter"
: T extends DeepLinkSupportedWalletIds
: T extends EcosystemWalletId
: undefined;

Example

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