-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
Hello there, I'm trying to use the module with Typescript and I just saw that there is a missing type for IntercomAPI. Is there any plan to add and export also that types? Thanks for the module BTW!
EDIT:
If this can help, here is my current extends of your types:
import * as ReactIntercom from 'react-intercom';
type IntercomActions = 'boot'
| 'shutdown'
| 'hide'
| 'update'
| 'show'
| 'showNewMessage'
| 'showMessages'
| 'onHide'
| 'onShow'
| 'onUnreadCountChange'
| 'trackEvent'
| 'getVisitorId'
| 'startTour'
type IntercomOptions = any;
declare module 'react-intercom' {
const IntercomAPI: (action: IntercomActions, options?: IntercomOptions) => void;
}lastavenka, petrogad, jacklorusso, im-adam, FrenchMajesty and 1 more
Metadata
Metadata
Assignees
Labels
No labels