@iconlake/client 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/types.d.ts +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iconlake/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "iconLake Typescript Client",
|
|
5
5
|
"author": "iconLake",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"types": "types/index.d.ts",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
|
-
"types"
|
|
17
|
+
"types",
|
|
18
|
+
"types.d.ts"
|
|
18
19
|
],
|
|
19
20
|
"publishConfig": {
|
|
20
21
|
"access": "public"
|
package/types.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Keplr, Window as KeplrWindow } from '@keplr-wallet/types';
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
interface KeplrIntereactionOptions {
|
|
5
|
+
readonly sign?: KeplrSignOptions;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface KeplrSignOptions {
|
|
9
|
+
readonly preferNoSetFee?: boolean;
|
|
10
|
+
readonly preferNoSetMemo?: boolean;
|
|
11
|
+
readonly disableBalanceCheck?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface CustomKeplr extends Keplr {
|
|
14
|
+
enable(chainId: string | string[]): Promise<void>;
|
|
15
|
+
|
|
16
|
+
defaultOptions: KeplrIntereactionOptions;
|
|
17
|
+
}
|
|
18
|
+
interface Window extends KeplrWindow {
|
|
19
|
+
keplr: CustomKeplr;
|
|
20
|
+
}
|
|
21
|
+
}
|