Skip to content

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

@pawelblaszczyk5

Description

@pawelblaszczyk5

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions