Patch Changes
-
fix: ensure ctx.meta.loadSubsetOptions type-safety works automatically (#869)
The module augmentation for ctx.meta.loadSubsetOptions is now guaranteed to load automatically when importing from @tanstack/query-db-collection. Previously, users needed to explicitly import QueryCollectionMeta or use @ts-ignore to pass ctx.meta?.loadSubsetOptions to parseLoadSubsetOptions.
Additionally, QueryCollectionMeta is now an interface (instead of a type alias), enabling users to safely extend meta with custom properties via declaration merging:
declare module "@tanstack/query-db-collection" { interface QueryCollectionMeta { myCustomProperty: string } }
-
Updated dependencies [
c8a2c16]:- @tanstack/db@0.5.6