Repository navigation
chore: regenerate Streamdown TSRX declarations and check them in CI - #1335
Merged
Merged
Conversation
The committed src/**/*.tsrx.d.ts files had drifted since #432: #1069 added a top-level JSX namespace to octane/jsx-runtime, and #943 changed memo's return type. Streamdown's types:check was never run by CI, so the drift went unnoticed. Regenerate the declarations and run `pnpm --dir packages/streamdown types:check` as a root `test` precheck alongside Visx's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
September 26, 2026 19:41
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
src/**/*.tsrx.d.tsdeclarations. They had been stale since feat(streamdown): add Octane binding #432, andnode scripts/generate-tsrx-types.mjs --checkfailed for 21 files onmain.pnpm --dir packages/streamdown types:checkto the roottestprecheck chain, next to Visx'stypes:check, so CI catches future drift. It takes about 2 seconds per shard.Where the drift came from
Both changes come from real source changes, not the local environment:
import("octane/jsx-runtime").Octane.JSX.Element→import("octane/jsx-runtime").JSX.Element: feat: add async signals and streaming SSR #1069 added a top-levelexport namespace JSXtooctane/jsx-runtime.Block,Streamdown,CodeBlockBody):ComponentBody<Props, any>becomesC & { readonly type: C; displayName?: string }. That is the return type fix: address React behavioral audit defects #943 gavememoinruntime.ts.The generator uses the
typescriptpackage, not tsgo. Locally that resolves to 5.9.3, the catalog pin CI installs, andpnpm install --frozen-lockfileconfirmed the local install matches the lockfile.No changeset
@octanejs/streamdownpublishes onlydist.scripts/build.mjsregeneratesdist/typesfrom source with--out-dir, so the published types already match this output. The committedsrcdeclarations are used only by the package's typetests andcheck-public-types.mjs.Validation
pnpm format:check: ranpnpm format:files:checkon the changed files onlypnpm typecheck: ranpnpm --dir packages/streamdown typecheckonly (passes)pnpm test: ran the full precheck chain (three upstream, Visx compile/types, Streamdown types), all passing; did not run the Vitest suite, since nothing Vitest imports changedpnpm --dir packages/streamdown types:checkpasses (declarations current plus public-export parity)types:checkexit 1pnpm ci:workflow:test: 276 pass, 0 failpnpm syncproduced no other changesRisk / follow-ups
memoreturn type, each memo'd declaration repeats its full destructured parameter list twice. A type annotation in the source would shorten that, but it isn't needed for correctness.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Generated declaration and CI script changes only; no runtime or published-package behavior changes.
Overview
Refreshes committed Streamdown
src/**/*.tsrx.d.tsoutput so it matches the current TSRX generator and Octane typings (21 files were out of date onmain).Declaration updates reflect upstream type changes only: component return types move from
Octane.JSX.Elementto top-levelJSX.Element, and memo-wrapped exports (Block,Streamdown,CodeBlockBody) now use the expandedmemoreturn shape instead ofComponentBody<…>.Root
testnow runspnpm --dir packages/streamdown types:checkalongside Visx’s checks, so CI fails if those generated declarations drift again. Publisheddisttypes are unchanged; these files support in-repo typetests and public-export checks.Reviewed by Cursor Bugbot for commit a6e29ee. Bugbot is set up for automated code reviews on this repo. Configure here.