forked from imbytecat/fullstack-starter
refactor: 优化合约类型导出与导入方式
- 导出合约类型以支持类型安全的接口定义 - 更新类型导入以使用 Contract 而非直接导出的 contract 变量
This commit is contained in:
@@ -3,3 +3,5 @@ import * as todo from './todo'
|
||||
export const contract = {
|
||||
todo,
|
||||
}
|
||||
|
||||
export type Contract = typeof contract
|
||||
|
||||
Reference in New Issue
Block a user