-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
使用hook可以拆分接口,但是发现所有类型定义还是塞在 types.ts 中了,导致 types.ts 文件达到数千行,对于 AI 造成困扰(浪费 token),不知道能否拆分,还是我的方法不对?
customFileNames: (operationObject, apiPath) => {
console.log('customFileNames', apiPath)
const path = apiPath.split('/').filter(Boolean)
if (path.length > 2) {
return [path[2]]
}
return ['common']
},Expected Behavior
拆分不同的 type.ts 而不是全部塞在 types.ts中
Steps To Reproduce
直接生成就能复现了
Environment
- OS: Windows 11Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels