-
Notifications
You must be signed in to change notification settings - Fork 51
fix: 修复引用类型返回值在 types.ts中也包含了 namespace 的问题 #398
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
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job
我记得前段时间我加这个功能的时候,没有这个明显的多余前缀问题,难道我当时就看错了,就漏了测试用例了? |
是的,就是这里的改动引起的,这个改动是为了解决当时版本 service中 response类型没有 namespace 的问题的,只是没有注意到types.ts 里面也用了这个添加了namespace的类型 |
好的,好的,我测试一下 |
感谢大佬🙏 |
我确认了一下提交 7982ab9 中单元测试快照的变更, 确实有点顾头不顾腚了哈哈。当时再仔细一点Review应该能看出点端倪的😢。 |
* 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>
更新后又发现一个问题,types.ts 中生成的类型别名也带上了 namespace, 导致类型错误。
修改后更新了一遍快照确认了一次, 都是预期的修改。