#Using non-exported types from library

2 messages · Page 1 of 1 (latest)

weak jasper
#

Hi all, I'm working with the Intercom developer library, and they don't export their types but I need to use them throughout my developer application. Is there a straightforward way for me to use these types? I can't edit the source file because it'll be overwritten in the node_modules

kindred crest
#

one (messy) way to do it is to make a fork of the repo that exports the types and then install from that github repo rather than the version on npm (by using npm i GithubUsername/RepositoryName)