From ac4b62ac41811024e750013e2e3ab0cdc5f6f694 Mon Sep 17 00:00:00 2001 From: creazyfrog Date: Sun, 26 Apr 2026 01:09:07 -0700 Subject: [PATCH 1/2] fix(loc): correct reversed subject/object in zh-CN translation of TS2561 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Simplified Chinese translation of error TS2561 had the subject and object swapped: it read "type '{1}' does not exist in '{0}'" instead of "'{0}' does not exist in type '{1}'", inverting the logical relationship and misleading Chinese-speaking developers. Three corrections applied: - Restructure "但"{0}"中不存在类型"{1}"" → "但"{0}"在类型"{1}"中不存在" (property does not exist in type, not type does not exist in property) - Remove redundant 的: "已知的属性" → "已知属性" - Improve closing phrase: "是否要写入 {2}?" → "您是否想写"{2}"?" (add quotes around the suggestion, use natural phrasing) Fixes #63274 Signed-off-by: creazyfrog --- .../diagnosticMessages/diagnosticMessages.generated.json.lcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loc/lcl/chs/diagnosticMessages/diagnosticMessages.generated.json.lcl b/src/loc/lcl/chs/diagnosticMessages/diagnosticMessages.generated.json.lcl index f6aadffe9d836..4b33655c3a60d 100644 --- a/src/loc/lcl/chs/diagnosticMessages/diagnosticMessages.generated.json.lcl +++ b/src/loc/lcl/chs/diagnosticMessages/diagnosticMessages.generated.json.lcl @@ -10315,7 +10315,7 @@ - + From a5f4541ec5464881322b88a6947203616027dcaf Mon Sep 17 00:00:00 2001 From: creazyfrog Date: Sun, 26 Apr 2026 01:13:29 -0700 Subject: [PATCH 2/2] fix(lib): allow CSSStyleValue in Keyframe index signature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Web Animations API is compatible with the CSS Typed Object Model: properties like `transform` accept CSSTransformValue objects (CSSRotate, CSSTranslate, etc.) at runtime in modern browsers, but the Keyframe index signature only permitted `string | number | null | undefined`. Adding CSSStyleValue — the common base class for all CSS Typed OM types — covers CSSTransformValue, CSSNumericValue, CSSKeywordValue, CSSUnitValue, and any future subclasses without needing to enumerate each one individually. Before: [property: string]: string | number | null | undefined; After: [property: string]: string | number | null | undefined | CSSStyleValue; Fixes #63325 Signed-off-by: creazyfrog --- src/lib/dom.generated.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dom.generated.d.ts b/src/lib/dom.generated.d.ts index d667879250cf4..977ac109ff3b0 100644 --- a/src/lib/dom.generated.d.ts +++ b/src/lib/dom.generated.d.ts @@ -1373,7 +1373,7 @@ interface Keyframe { composite?: CompositeOperationOrAuto; easing?: string; offset?: number | null; - [property: string]: string | number | null | undefined; + [property: string]: string | number | null | undefined | CSSStyleValue; } interface KeyframeAnimationOptions extends KeyframeEffectOptions {