I've created a server-side library to consume Yelp Fusion API in TypeScript. the library references a bunch of types/interfaces which I would like to expose to client-side applications, but in a way that is not requiring the npm install of the server-side library.
I am thinking to separate the types to their own published package and reference that in both the server and client applications but this seems hard to maintain and I am wondering if there is a built-in or otherwise more efficient way to approach this?