refactor: 优化合约类型导出与导入方式

- 导出合约类型以支持类型安全的接口定义
- 更新类型导入以使用 Contract 而非直接导出的 contract 变量
This commit is contained in:
2026-01-22 16:21:08 +08:00
parent 7c8452c731
commit 660ee0a545
2 changed files with 3 additions and 2 deletions

View File

@@ -3,3 +3,5 @@ import * as todo from './todo'
export const contract = {
todo,
}
export type Contract = typeof contract