best-unit 0.0.22 → 0.0.24
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
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "best-unit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.24",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/best-unit.cjs",
|
|
7
7
|
"module": "dist/best-unit.js",
|
|
8
|
-
"types": "dist/
|
|
8
|
+
"types": "dist/global.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "vite",
|
|
11
|
-
"build": "tsc -b && vite build && cp -r src/
|
|
11
|
+
"build": "tsc -b && vite build && cp -r src/global.d.ts dist/global.d.ts",
|
|
12
12
|
"prepublishOnly": "npm version patch --no-git-tag-version",
|
|
13
13
|
"preview": "vite preview"
|
|
14
14
|
},
|
package/src/global.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare function npmTest(): void;
|
|
2
|
+
|
|
3
|
+
export declare function printCurrentTime(): void;
|
|
4
|
+
|
|
5
|
+
export declare function initFundUnit(params: {
|
|
6
|
+
token: string;
|
|
7
|
+
merchant_id: string;
|
|
8
|
+
biz_type: string;
|
|
9
|
+
user_id: string;
|
|
10
|
+
theme?: string;
|
|
11
|
+
}): {
|
|
12
|
+
token: string;
|
|
13
|
+
merchantId: string;
|
|
14
|
+
bizType: string;
|
|
15
|
+
theme?: string;
|
|
16
|
+
userId: string;
|
|
17
|
+
};
|
|
18
|
+
declare global {
|
|
19
|
+
namespace JSX {
|
|
20
|
+
interface IntrinsicElements {
|
|
21
|
+
"x-greeting": any;
|
|
22
|
+
"x-best-modal-form": {
|
|
23
|
+
theme?: any;
|
|
24
|
+
merchant_id?: string;
|
|
25
|
+
biz_type?: string;
|
|
26
|
+
token?: string;
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
"best-statistical-balance": any;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export {};
|
package/src/types/index.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'preact-custom-element'
|