Skip to content
Source
Sign inSign up
TanStack/db

TS can't emit declarations for "@tanstack/electric-db-collection" usage #393

Closedpawelblaszczyk5(GitHub profile, opens in a new tab) opened this issue 2 comments

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.

It seems like electricCollectionOptions is using something in return type which isn't exported from anywhere, so when using TS with declaration emit enabled it results in:

Image

I verified and it's related to this:

Image

When I use pnpm patch and export this type from package source code, everything works correctly.

  1. Hey @pawelblaszczyk5, could you take a look at PR #398 and confirm it fixes the issue?

  2. Hey @pawelblaszczyk5, could you take a look at PR #398 and confirm it fixes the issue?

    Yup, that fixes it

  3. samwillis closed this

Sign in to join this conversation.