@solana/wallet-adapter-base
Advanced tools
Comparing version 0.9.5 to 0.9.6
@@ -14,7 +14,7 @@ import { Connection, PublicKey, SendOptions, Signer, Transaction, TransactionSignature } from '@solana/web3.js'; | ||
} | ||
export declare type WalletName = string & { | ||
export declare type WalletName<T extends string = string> = T & { | ||
__brand__: 'WalletName'; | ||
}; | ||
export interface WalletAdapterProps { | ||
name: WalletName; | ||
export interface WalletAdapterProps<Name extends string = string> { | ||
name: WalletName<Name>; | ||
url: string; | ||
@@ -30,3 +30,3 @@ icon: string; | ||
} | ||
export declare type WalletAdapter = WalletAdapterProps & EventEmitter<WalletAdapterEvents>; | ||
export declare type WalletAdapter<Name extends string = string> = WalletAdapterProps<Name> & EventEmitter<WalletAdapterEvents>; | ||
/** | ||
@@ -33,0 +33,0 @@ * A wallet's readiness describes a series of states that the wallet can be in, |
{ | ||
"name": "@solana/wallet-adapter-base", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"author": "Solana Maintainers <maintainers@solana.foundation>", | ||
@@ -29,7 +29,12 @@ "repository": "https://github.com/solana-labs/wallet-adapter", | ||
}, | ||
"peerDependencies": { | ||
"@solana/web3.js": "^1.44.3" | ||
}, | ||
"dependencies": { | ||
"@solana/web3.js": "^1.36.0", | ||
"eventemitter3": "^4.0.0" | ||
}, | ||
"gitHead": "e89adf6cdc59ca33db0fcc3a27841a1f94a8b8ed" | ||
"devDependencies": { | ||
"@solana/web3.js": "^1.44.3" | ||
}, | ||
"gitHead": "b4e2ac67dab0d8dadb4b0d49a456c63aa29b5663" | ||
} |
@@ -18,8 +18,8 @@ import { Connection, PublicKey, SendOptions, Signer, Transaction, TransactionSignature } from '@solana/web3.js'; | ||
// WalletName is a nominal type that wallet adapters should use, e.g. `'MyCryptoWallet' as WalletName` | ||
// WalletName is a nominal type that wallet adapters should use, e.g. `'MyCryptoWallet' as WalletName<'MyCryptoWallet'>` | ||
// https://medium.com/@KevinBGreene/surviving-the-typescript-ecosystem-branding-and-type-tagging-6cf6e516523d | ||
export type WalletName = string & { __brand__: 'WalletName' }; | ||
export type WalletName<T extends string = string> = T & { __brand__: 'WalletName' }; | ||
export interface WalletAdapterProps { | ||
name: WalletName; | ||
export interface WalletAdapterProps<Name extends string = string> { | ||
name: WalletName<Name>; | ||
url: string; | ||
@@ -41,3 +41,3 @@ icon: string; | ||
export type WalletAdapter = WalletAdapterProps & EventEmitter<WalletAdapterEvents>; | ||
export type WalletAdapter<Name extends string = string> = WalletAdapterProps<Name> & EventEmitter<WalletAdapterEvents>; | ||
@@ -44,0 +44,0 @@ /** |
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
58556
1
- Removed@solana/web3.js@^1.36.0