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

feat(typedef): add export IntercomAPI in the typedef #63

Closed
wants to merge 1 commit into from
Closed

feat(typedef): add export IntercomAPI in the typedef #63

wants to merge 1 commit into from

Conversation

hlibco
Copy link

@hlibco hlibco commented Feb 12, 2019

@nhagen Here's an attempt to close issue #58 - Thanks @jakemmarsh for adding the index.d.ts in the PR #52 - It seems that one exported member has been left out, and this PR includes it.

This is a non-breaking change PR. It's also an important addition for Typescript users that currently see the error when trying to: import { IntercomAPI } from 'react-intercom':

[ts] Module "react-intercom/index" has no exported member 'IntercomAPI'.

Even though the IntercomAPI is being exported in the index.js, it was not being exported in the index.d.ts. This PR adds IntercomAPI in the definition file.

@pingshunhuang Hopefully you'll be able to use react-intercom in your Typescript projects soon when this PR is merged.

@nhagen
Copy link
Owner

nhagen commented Sep 1, 2019

Apologies all, this is definitely something that should have been merged a while ago. See #73 but this should be addressed by this, so I'm closing this PR.

@nhagen nhagen closed this Sep 1, 2019
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