Tightens TypeScript typing for collection utilities across Electric, Trailbase, PowerSync, and local-only collections so utils retain their concrete types through createCollection (especially when handler callbacks like onInsert/onUpdate/onDelete are present), and adds type-level tests to prevent regressions. This improves developer experience and correctness by avoiding widened UtilsRecord types and enabling safer autocomplete/compile-time guarantees across adapters. Main concerns are potential breaking type changes for downstream consumers relying on the previous widened behavior, plus the risk that overload/inference tweaks could expose new edge-case typing conflicts across different collection config shapes despite tests passing.

![autofix-ci[bot]](/_next/image?url=https%3A%2F%2Fgithub.com%2Fautofix-ci%5Bbot%5D.png&w=3840&q=75)