intercom / intercom-node

Node.js bindings for the Intercom API
https://developers.intercom.com
Other
366 stars 116 forks source link

How to import types ? #376

Closed jatin510 closed 1 year ago

jatin510 commented 1 year ago

Hi ! I was trying to implement crud for company and contact. And while I am trying to import the types for the following, I am not able to import the types.

Can you please provide an example to do the same

Version info

const createContact: CreateContact = {}

how to import this CreateContact type from the intercom-node

colmdoyle commented 1 year ago

intercom-node doesn't have a CreateContact type?

There's a ContactObject which you can access by importing it like so

import { ContactObject } from 'intercom-client'