fix: 修复引用类型返回值在 types.ts中也包含了 namespace 的问题#398
Merged
rookie-luochao merged 2 commits intoopenapi-ui:mainfrom Jul 11, 2025
Merged
fix: 修复引用类型返回值在 types.ts中也包含了 namespace 的问题#398rookie-luochao merged 2 commits intoopenapi-ui:mainfrom
rookie-luochao merged 2 commits intoopenapi-ui:mainfrom
Conversation
🦋 Changeset detectedLatest commit: 3061db4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Member
|
我记得前段时间我加这个功能的时候,没有这个明显的多余前缀问题,难道我当时就看错了,就漏了测试用例了? |
Member
Member
Contributor
Author
|
是的,就是这里的改动引起的,这个改动是为了解决当时版本 service中 response类型没有 namespace 的问题的,只是没有注意到types.ts 里面也用了这个添加了namespace的类型 |
Contributor
Author
Member
|
好的,好的,我测试一下 |
Member
|
感谢大佬🙏 |
Contributor
Author
|
我确认了一下提交 7982ab9 中单元测试快照的变更, 确实有点顾头不顾腚了哈哈。当时再仔细一点Review应该能看出点端倪的😢。 |
rookie-luochao
added a commit
that referenced
this pull request
Jul 14, 2025
* build(deps): bump bing-translate-api from 4.0.2 to 4.1.0 Bumps [bing-translate-api](https://github.com/plainheart/bing-translate-api) from 4.0.2 to 4.1.0. - [Release notes](https://github.com/plainheart/bing-translate-api/releases) - [Commits](plainheart/bing-translate-api@v4.0.2...v4.1.0) --- updated-dependencies: - dependency-name: bing-translate-api dependency-version: 4.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * build(deps-dev): bump @tanstack/react-query from 5.80.10 to 5.82.0 Bumps [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query) from 5.80.10 to 5.82.0. - [Release notes](https://github.com/TanStack/query/releases) - [Commits](https://github.com/TanStack/query/commits/v5.82.0/packages/react-query) --- updated-dependencies: - dependency-name: "@tanstack/react-query" dependency-version: 5.82.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Merge pull request #398 from AdoKevin/namespace_in_types fix: 修复引用类型返回值在 types.ts中也包含了 namespace 的问题 * chore: clean code --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kevin Law <kevinlaw1024@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



更新后又发现一个问题,types.ts 中生成的类型别名也带上了 namespace, 导致类型错误。
修改后更新了一遍快照确认了一次, 都是预期的修改。