best-unit 0.0.31 → 0.0.32

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.
@@ -16,7 +16,21 @@ export declare function initFundUnit(params: {
16
16
  userId: string;
17
17
  };
18
18
 
19
- export declare const fundProxy: any;
19
+ // Vite 代理配置类型
20
+ export declare const viteProxy: {
21
+ "/api": {
22
+ target: string;
23
+ changeOrigin: boolean;
24
+ rewrite: (path: string) => string;
25
+ secure: boolean;
26
+ };
27
+ };
28
+
29
+ // Next.js 代理配置类型
30
+ export declare const nextProxy: {
31
+ source: string;
32
+ destination: string;
33
+ };
20
34
 
21
35
  declare global {
22
36
  interface Window {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "best-unit",
3
3
  "private": false,
4
- "version": "0.0.31",
4
+ "version": "0.0.32",
5
5
  "type": "module",
6
6
  "main": "dist/best-unit.cjs",
7
7
  "module": "dist/best-unit.js",
@@ -16,7 +16,21 @@ export declare function initFundUnit(params: {
16
16
  userId: string;
17
17
  };
18
18
 
19
- export declare const fundProxy: any;
19
+ // Vite 代理配置类型
20
+ export declare const viteProxy: {
21
+ "/api": {
22
+ target: string;
23
+ changeOrigin: boolean;
24
+ rewrite: (path: string) => string;
25
+ secure: boolean;
26
+ };
27
+ };
28
+
29
+ // Next.js 代理配置类型
30
+ export declare const nextProxy: {
31
+ source: string;
32
+ destination: string;
33
+ };
20
34
 
21
35
  declare global {
22
36
  interface Window {