Skip to content

Add missing type exports required by @livekit/components-core#1815

Merged
lukasIO merged 2 commits intomainfrom
add-missing-exports
Feb 19, 2026
Merged

Add missing type exports required by @livekit/components-core#1815
lukasIO merged 2 commits intomainfrom
add-missing-exports

Conversation

@1egoman
Copy link
Contributor

@1egoman 1egoman commented Feb 19, 2026

In a few places, @livekit/components-core imports unexported types from an import path prefixed with livekit-client/dist/.... However, per the livekit-client package.json, there are only two supported package "exports", so depending on how strict downstream tools are, this may result in build errors like the below:

node_modules/@livekit/components-core/dist/components/textStream.d.ts:2:37 - error TS2307: Cannot find module 'livekit-client/dist/src/room/types' or its corresponding type declarations.

2 import type { TextStreamInfo } from 'livekit-client/dist/src/room/types';

I did an inventory and it looks like in all of the components-js repo, there are four types that are being imported this way:

  • TextStreamInfo
  • PublicationEventCallbacks
  • RoomEventCallbacks (Note this is already being exported from the livekit-client package, so these imports can be fixed without upstream modifications)
  • ParticipantEventCallbacks

So, this pull request adds the remaining three as exports in preparation for rewriting the imports in @livekit/components-core.

@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2026

🦋 Changeset detected

Latest commit: ec85d45

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 86.67 KB (0%)
dist/livekit-client.umd.js 97.14 KB (0%)

@1egoman 1egoman marked this pull request as ready for review February 19, 2026 15:48
@lukasIO lukasIO merged commit ceff5ae into main Feb 19, 2026
6 checks passed
@lukasIO lukasIO deleted the add-missing-exports branch February 19, 2026 15:51
@github-actions github-actions bot mentioned this pull request Feb 18, 2026
1egoman added a commit to livekit/components-js that referenced this pull request Feb 19, 2026
The ts-ignore comments above (most) don't get copied into the resulting
built version of the code so these issues still get raised by
downstream users who rely on using the typing files in `dist/`.

Relevant upstream change this relies on:
livekit/client-sdk-js#1815
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants