TanStack
OSS
ai
Sign in / Sign up
Open main menu
ai
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
848-generation-hooks-onresult-transform-fails-type-inference-param-is-any-hard-error-under-strict
acd7621b Merge 760958358a25a83ed61ae7e77aa0745346533c8f into 33acdd4df4aef13d594700d9b52087252091bd40
by Tom Beckenham
T
Succeeded
848-generation-hooks-onresult-transform-fails-type-inference-param-is-any-hard-error-under-strict
acd7621b ci: apply automated fixes
by autofix-ci...
a
Succeeded
848-generation-hooks-onresult-transform-fails-type-inference-param-is-any-hard-error-under-strict
3a3ea459 fix(framework hooks): infer onResult transform type on generation hooks (#848) The generation hooks declared the `onResult` transform via a single defaulted type parameter inferred from an optional nested property, which TypeScript collapses to its default — leaving the callback parameter typed `any` (a hard error under `strict`) and never narrowing `result` to the transform's return type. The hooks now infer the transform type from the `onResult` return position (a covariant inference site that works for an optional nested property), so the callback parameter is typed as the raw result and `result` narrows to the transform's return type; omitting the transform keeps the raw result type. A new `InferGenerationOutputFromReturn` helper maps null/void/undefined returns back to the raw result type. Applies across every framework package — the base generation hook plus generateImage / generateAudio / generateSpeech / generateVideo / transcription / summarize (React, Vue, Solid `use*`, Svelte `create*`, Angular `inject*`). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
by Tom Beckenham
T
Succeeded
848-generation-hooks-onresult-transform-fails-type-inference-param-is-any-hard-error-under-strict
3a3ea459 Merge 56ab21a58020509a100b1e8a5a30b4e6f19b0b1b into 33acdd4df4aef13d594700d9b52087252091bd40
by Tom Beckenham
T
Previous page
Previous
Next
Next page