best-unit 0.0.21 → 0.0.23
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.
|
@@ -2,6 +2,19 @@ export declare function npmTest(): void;
|
|
|
2
2
|
|
|
3
3
|
export declare function printCurrentTime(): void;
|
|
4
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
|
+
};
|
|
5
18
|
declare global {
|
|
6
19
|
namespace JSX {
|
|
7
20
|
interface IntrinsicElements {
|
|
@@ -19,4 +32,4 @@ declare global {
|
|
|
19
32
|
}
|
|
20
33
|
export {};
|
|
21
34
|
|
|
22
|
-
|
|
35
|
+
declare module "preact-custom-element";
|
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.23",
|
|
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,35 @@
|
|
|
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 {};
|
|
34
|
+
|
|
35
|
+
declare module "preact-custom-element";
|
package/src/types/index.d.ts
CHANGED
|
@@ -2,21 +2,13 @@ export declare function npmTest(): void;
|
|
|
2
2
|
|
|
3
3
|
export declare function printCurrentTime(): void;
|
|
4
4
|
|
|
5
|
-
declare
|
|
6
|
-
namespace JSX {
|
|
5
|
+
declare namespace JSX {
|
|
7
6
|
interface IntrinsicElements {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
theme?: any;
|
|
11
|
-
merchant_id?: string;
|
|
12
|
-
biz_type?: string;
|
|
13
|
-
token?: string;
|
|
7
|
+
'x-greeting': {
|
|
8
|
+
name?: string; // 组件支持的属性
|
|
14
9
|
[key: string]: any;
|
|
15
10
|
};
|
|
16
|
-
"best-statistical-balance": any;
|
|
17
11
|
}
|
|
18
12
|
}
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
21
13
|
|
|
22
14
|
/// <reference path="./preact-custom-element.d.ts" />
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'preact-custom-element'
|