Hello!
I'm playing with TanStack DB - awesome job, really excellent experience. Happy to test the early release and report some issues I stumbled upon.
Currently electricCollection options return this:
While createCollection accepts only:
That results in cryptic errors for users with exactOptionalPropertyTypes in tsconfig enabled:
I think it's related to the fact that electricCollectionOptions return type isn't explicit? It seems like most of the rest collection factories are explicitly typed so they get this type sync for free.
Hello!
I'm playing with TanStack DB - awesome job, really excellent experience. Happy to test the early release and report some issues I stumbled upon.
Currently
electricCollectionoptions return this:While
createCollectionaccepts only:That results in cryptic errors for users with
exactOptionalPropertyTypesintsconfigenabled:I think it's related to the fact that
electricCollectionOptionsreturn type isn't explicit? It seems like most of the rest collection factories are explicitly typed so they get this type sync for free.