Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileData 冲突问题 #81

Open
snoopy1412 opened this issue Jul 31, 2023 · 0 comments
Open

FileData 冲突问题 #81

snoopy1412 opened this issue Jul 31, 2023 · 0 comments

Comments

@snoopy1412
Copy link

用yapi-to-typescript生成ts文件时,文件本身会加上
// @ts-ignore type FileData = File;

但是如果生成了多个ts文件,可能会因为冲突而报错
Module './api/147' has already exported a member named 'FileData'. Consider explicitly re-exporting to resolve the ambiguity.
这种情况如何处理?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant