@solana/wallet-standard
Advanced tools
Comparing version 0.1.0-alpha.0 to 0.1.0-alpha.1
@@ -5,6 +5,10 @@ import { Wallet, WalletAccount } from './wallet'; | ||
/** Global `navigator.wallets` object. */ | ||
navigator: Navigator & { | ||
wallets?: Wallets<Account> | WalletsCommand<Account>[]; | ||
}; | ||
navigator: WalletsNavigator<Account>; | ||
} | ||
/** TODO: docs */ | ||
export interface WalletsNavigator<Account extends WalletAccount> extends Navigator { | ||
wallets?: NavigatorWallets<Account>; | ||
} | ||
/** TODO: docs */ | ||
export declare type NavigatorWallets<Account extends WalletAccount> = Wallets<Account> | WalletsCommand<Account>[]; | ||
/** Global `navigator.wallets` object API. */ | ||
@@ -11,0 +15,0 @@ export interface Wallets<Account extends WalletAccount> { |
{ | ||
"name": "@solana/wallet-standard", | ||
"version": "0.1.0-alpha.0", | ||
"version": "0.1.0-alpha.1", | ||
"author": "Solana Maintainers <maintainers@solana.foundation>", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/solana-labs/wallet-standard", |
import { Wallet, WalletAccount } from './wallet'; | ||
declare const window: WalletsWindow<WalletAccount>; | ||
declare const navigator: WalletsNavigator<WalletAccount>; | ||
@@ -8,7 +9,13 @@ /** Browser window containing a global `navigator.wallets` object. */ | ||
/** Global `navigator.wallets` object. */ | ||
navigator: Navigator & { | ||
wallets?: Wallets<Account> | WalletsCommand<Account>[]; | ||
}; | ||
navigator: WalletsNavigator<Account>; | ||
} | ||
/** TODO: docs */ | ||
export interface WalletsNavigator<Account extends WalletAccount> extends Navigator { | ||
wallets?: NavigatorWallets<Account>; | ||
} | ||
/** TODO: docs */ | ||
export type NavigatorWallets<Account extends WalletAccount> = Wallets<Account> | WalletsCommand<Account>[]; | ||
/** Global `navigator.wallets` object API. */ | ||
@@ -15,0 +22,0 @@ export interface Wallets<Account extends WalletAccount> { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93468
1263