Skip to content

Commit 44e7c72

Browse files
committed
refactor(pay-gateway): 优化项目稳定性(hot refactor)
1 parent dcd7125 commit 44e7c72

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.changeset/brave-hoops-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ethan-utils/pay-gateway": patch
3+
---
4+
5+
优化项目稳定性(hot refactor)

node-pkgs/pay-gateway/7pay/types.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,3 @@ declare global {
202202

203203
// 导出 SevenPay 命名空间
204204
export type { SevenPay };
205-
206-
export {};

node-pkgs/pay-gateway/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ export function helloPayGateway() {
22
console.log("你好,`@ethan-utils/pay-gateway` 支付网关!");
33
}
44

5-
// 导出类型
6-
export type { LTZF } from "./ltzf/types.d.ts";
7-
export type { SevenPay } from "./7pay/types.d.ts";
5+
// 重新导出 ltzf 相关功能
6+
export * as ltzf from "./ltzf/index.js";
7+
8+
// 重新导出 7pay 相关功能
9+
export * as sevenPay from "./7pay/index.js";
810

911
// 导入模块用于默认导出
1012
import * as ltzfModule from "./ltzf/index.js";

node-pkgs/pay-gateway/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"outDir": "dist",
55
"rootDir": "."
66
},
7-
"include": ["index.ts", "7pay/index.ts", "ltzf/index.ts", "**/*.d.ts"]
7+
"include": ["index.ts", "7pay/**/*", "ltzf/**/*", "**/*.d.ts"]
88
}

0 commit comments

Comments
 (0)