Docs

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"
? InAppWalletCreationOptions
: T extends typeof COINBASE
? CoinbaseWalletCreationOptions
: T extends "adapter"
? AdapterWalletOptions
: undefined;

Example

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