Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript Error: AuthInfo type does not exist #512

Closed
anthony-j-castro opened this issue Nov 24, 2020 · 3 comments · Fixed by #513
Closed

TypeScript Error: AuthInfo type does not exist #512

anthony-j-castro opened this issue Nov 24, 2020 · 3 comments · Fixed by #513

Comments

@anthony-j-castro
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
I'm using pusher-js/with-encryption in a TypeScript project. When I attempt to compile, I get the following error:

node_modules/pusher-js/with-encryption/index.d.ts:2:3 - error TS2305: Module '"../types/src/core/auth/options"' has no exported member 'AuthInfo'.

2   AuthInfo,
    ~~~~~~~~

It looks like the AuthInfo type definition was removed in v7.0.0 (see 96aab17#diff-dbc910045a791a925c9af7c217c3abae2cff6d78d9df1f443188b7103b3cc2b7L10), but it's still being referenced.

Proposed solution: Removing the export of AuthInfo from

and should resolve the issue.

@leesio
Copy link
Contributor

leesio commented Nov 25, 2020

I created a PR for this: #513

@leesio
Copy link
Contributor

leesio commented Nov 26, 2020

I just pushed a release. Let me know if you're still experiencing issues with 7.0.2.

@anthony-j-castro
Copy link
Author

7.0.2 looks good, thanks for the quick fix!

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 a pull request may close this issue.

2 participants