Repository navigation
TS ui_framework: type assertions are not JSX; class extends is not generics (#8011, stack 4/5) - #8021
Closed
squid-protocol wants to merge 2 commits into
Closed
squid-protocol wants to merge 2 commits into
squid-protocol wants to merge 2 commits into
Conversation
…tag; class extends is not generics (#8011, #8010) Old-style type assertions (<NamedTypeNode>factory.create()) matched the JSX alternative; class/interface heritage extends matched generics. Constraints (<T extends U>) and conditional types (T extends U ? X : Y) still count. Fixes #8011 Part of #8010 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
554 differences per leg, all on .ts files (474 file-level): generic type abstractions, UI view-layer components, and the repository fingerprint / drift and function archetypes downstream of them. Part of #8011 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY
Contributor
|
No description provided. |
Owner
Author
|
Superseded by #8024 (the stack squashed into one PR to save CI capacity, at the owner's request). |
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Nov 7, 2026
…rlap leaks, TS ui/generics, function-level scope (#8009, #8010, #8011, #8012) (#8024) Squash of the five-PR stack (#8013, #8015, #8019, #8021, #8022), combined at the owner's request to save CI capacity. - #8009: SIGNAL_DISPLAY_NAMES + signal_display_name() + docs/signals.md; the LLM brief shows display names beside raw keys and no longer calls linear 'paths'. - #8010: C size_t out of safety; Python/embedded_python pass only as except...: pass (one site); PHP exit/die out of debug_prints. - #8011: TS ui_framework treats <Foo> as JSX only with attribute/self-close/ closing tag; class/interface extends is not generics. - #8012: FUNCTION_LEVEL_ABSENT_SIGNALS marks the 36 always-zero function columns. Golden masters re-blessed per slice, every difference attributed. Fixes #8011 Claude-Session: https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Stack 4/5. Base is #8019 (on #8015, #8013). Review after it.
What this does
ui_framework<Foo>exprmatched as a JSX component, so old-style type assertions such as<NamedTypeNode>factory.create()counted as UI<Foocounts as JSX only with an attribute (<Foo prop=), a self-close (<Foo />) or a closing tag (</Foo>)genericsextendsmatched, soclass A extends Bandinterface I extends Jcounted as genericsT extends U ? X : Y); constraints (<T extends U>) still match the<…>branchtests/extraction/languages/test_typescript_ui_generics_8011.pycovers type assertions, JSX components (attribute, self-close, closing tag,Foo.Bar,data-attributes), heritageextends, and real generics (conditional, constraint,keyof).Golden masters
.tsfiles.Checks
pr_gates --ratchets: 9/9 pass.pr_gates --fast: 8/9 gates pass.affectedfails only ontest_committed_fidelity_table_is_fresh_against_the_corpus, the same local keyword-rosetta mismatch as Signal display names: what each keyword signal actually counts (#8009, stack 1/5) #8013 and Rule overlap leaks: C size_t, Python pass, PHP exit/die no longer double-counted (#8010, stack 3/5) #8019; the regeneratedfidelity_table.pyis identical to Signal display names: what each keyword signal actually counts (#8009, stack 1/5) #8013's.tests/extraction/languages/passes (12,981).Class / Sibling gaps
(?<!\w)<[A-Z]. JavaScript has no type-assertion syntax, so<Foothere is JSX and is left unchanged. Every member is handled.extends: only TypeScript'sgenericslisted bareextends(swept all languages for Same token counted by two keyword rules (C size_t = safety+pointers, PHP exit = debug_prints, Python pass = safety_bypasses): pair co-occurrence partly definitional #8010).Fixes #8011
Part of #8010
🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvh3Fv4eomruTgx3VvY