We fix the test:types failure by adding as RowSource to the rowSource initial value in Alpine.reactive(), which narrows the inferred type from string to the expected 'all' | 'custom' | 'filtered' | 'page' | 'selected' union. Without this assertion, Alpine's reactive wrapper widens the literal to string, causing both TS2322 errors where { rowSource: string } fails assignability to AggregationTableMeta. This aligns the alpine example with the pattern used in the vanilla and lit aggregation examples.
This code change can't be applied
A fix is available, but it can't be applied automatically because the branch is outdated. Please sync the branch, then apply the fix locally below.
Self-Healing CI
Classification: Code change needed
Fix generated
Verified 1 task
Commit"fix(alpine-aggregation): narrow rowSource type in Alpine.reactive call"
1 file changed
+1/−1