fix(maps): 补全 BMap/TMap SDK 类型声明,修复 dts 生成失败 - #2884
Merged
Merged
Conversation
#2878 迁移 bmap/tmap 到 BaseMap 后 SDK 类型缺 on/off/getMinZoom/getMaxZoom/getContainer/panBy 等成员声明, father declaration 生成失败, 阻塞 fixed group 发布。 新增 ambient map-sdk-augmentation.d.ts 用 namespace 接口合并 补齐; bmap 补 version 声明; handleCameraChanged 改可选调用 cameraChangedCallback?.。 全量 pnpm build 通过, 无运行时行为变更。 详 .changeset/fix-maps-bmap-tmap-types.md
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
🦋 Changeset detectedLatest commit: 4f58e73 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
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 |
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.
背景
为 `@antv/l7-source` 渐进式重构发 beta(PR #2882 已合并)时,全量 `pnpm build` 在 `@antv/l7-maps` 的 father declaration 生成阶段中断(exit 1),阻塞 fixed group `["@antv/l7","@antv/l7-*"]` 整体发布。
根因:PR #2878 将 bmap/tmap 迁移到 BaseMap 后,第三方 SDK 类型缺失「运行时存在但 `.d.ts` 未声明」的成员:
共 18 处 TS 错误(bmap 7 + tmap 11),与 source 重构无关,是 #2878 的既存遗留。
修法(补类型声明,非 `as any`)
验证
改动文件
合并后恢复 source beta 发布流程(beta 本地准备状态已暂存保留)。