best-unit 0.0.24 → 0.0.26

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.
@@ -0,0 +1 @@
1
+ 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.24",
4
+ "version": "0.0.26",
5
5
  "type": "module",
6
6
  "main": "dist/best-unit.cjs",
7
7
  "module": "dist/best-unit.js",
8
- "types": "dist/global.d.ts",
8
+ "types": "dist/types/index.d.ts",
9
9
  "scripts": {
10
10
  "dev": "vite",
11
- "build": "tsc -b && vite build && cp -r src/global.d.ts dist/global.d.ts",
11
+ "build": "tsc -b && vite build && cp -r src/types dist/types",
12
12
  "prepublishOnly": "npm version patch --no-git-tag-version",
13
13
  "preview": "vite preview"
14
14
  },
@@ -31,3 +31,4 @@ declare global {
31
31
  }
32
32
  }
33
33
  export {};
34
+ /// <reference path="./preact-custom-element.d.ts" />
package/src/global.d.ts DELETED
@@ -1,33 +0,0 @@
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 {};