@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.
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 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 theindex.js
, it was not being exported in theindex.d.ts
. This PR addsIntercomAPI
in the definition file.@pingshunhuang Hopefully you'll be able to use
react-intercom
in your Typescript projects soon when this PR is merged.