@dioxide-js/detect-provider
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.0.7](https://github.com/duiyuan/dioxide-provider/compare/v0.0.6...v0.0.7) (2022-06-11) | ||
### [0.0.6](https://github.com/duiyuan/dioxide-provider/compare/v0.0.5...v0.0.6) (2022-05-24) | ||
@@ -7,0 +9,0 @@ |
@@ -0,1 +1,4 @@ | ||
export interface KeyValue<T = any> { | ||
[key: string]: T; | ||
} | ||
export interface DioxideWalletProvider { | ||
@@ -8,2 +11,6 @@ once(eventName: string, listener: (...args: any[]) => void): this; | ||
removeAllListeners(event?: string): this; | ||
request<T = KeyValue, K = any>(params: { | ||
method: string; | ||
params: T; | ||
}): Promise<K>; | ||
} | ||
@@ -10,0 +17,0 @@ /** |
{ | ||
"name": "@dioxide-js/detect-provider", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A tiny utility for detecting the Dioxide-wallet provider which injected at window.dioxide.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
31243
187