Docs

CreateWalletArgs

Generic type for getting the tuple type of arguments that the createWallet function takes.

type CreateWalletArgs<T extends WalletId> =
WalletCreationOptions<T> extends undefined
? [id: T]
: undefined extends WalletCreationOptions<T>
? [id: T, options: WalletCreationOptions<T>]
: [id: T, options: WalletCreationOptions<T>];

Example

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