Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

index is not exporting MessageTypes #412

Closed
sneko opened this issue May 10, 2018 · 3 comments · Fixed by #587
Closed

index is not exporting MessageTypes #412

sneko opened this issue May 10, 2018 · 3 comments · Fixed by #587

Comments

@sneko
Copy link

sneko commented May 10, 2018

Hi,

I try to use this line in a .ts file:
import { SubscriptionClient, MessageTypes } from 'subscriptions-transport-ws'

But it tells me that MessageTypes is not exported by index.

I tried with versions 0.9.5 and 0.9.9

Thanks

@kafkahw
Copy link
Contributor

kafkahw commented Jun 27, 2019

I'm facing the same issue here as well. I think it can be easily fixed by update the export statement for message-types here

from

export * from './message-types';

to

export { default as MessageTypes } from './message-types';

@kafkahw kafkahw mentioned this issue Jun 27, 2019
4 tasks
@alfaproject
Copy link

Just stumbled upon this issue as well ):

@austin-beer
Copy link

I would like to see this issue fixed as well!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants