fix: resolve TS2352 blocking CI + platform-neutral update label#240
Merged
icebear0828 merged 2 commits intomasterfrom Mar 27, 2026
Merged
fix: resolve TS2352 blocking CI + platform-neutral update label#240icebear0828 merged 2 commits intomasterfrom
icebear0828 merged 2 commits intomasterfrom
Conversation
Cover 4 scenarios: server returns new RT, returns null, omits field, and oaistb_rt_ without new RT. All must preserve existing RT.
- Replace `as Record<string, unknown>` with `in` operator check in account-persistence.ts to fix TS2352 that broke all CI builds since v2.0.19 - Change "Download Latest DMG" to "Download Latest Version" (EN/ZH) so Windows/Linux users see correct wording
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.
Summary
account-persistence.ts:189的as Record<string, unknown>类型断言在tsc --strict下报 TS2352,改为in运算符检查。此错误导致 v2.0.19 起所有平台(Windows/Mac/Linux)CI 构建失败,release 停滞在 v2.0.18Test plan
npm run build无 TS 错误npm test118 files / 1382+ tests 全通过