@mysten/wallet-standard
Version:
A suite of standard utilities for implementing wallets based on the Wallet Standard.
4 lines (3 loc) • 391 B
TypeScript
import type { Wallet, WalletWithFeatures } from '@wallet-standard/core';
import type { MinimallyRequiredFeatures } from './features/index.js';
export declare function isWalletWithRequiredFeatureSet<AdditionalFeatures extends Wallet['features']>(wallet: Wallet, additionalFeatures?: (keyof AdditionalFeatures)[]): wallet is WalletWithFeatures<MinimallyRequiredFeatures & AdditionalFeatures>;