Why are typescript types in a seperate project

I am using https://github.com/octokit/rest.js along with Probot and am developing with Typescript. While trying to add types for a response object (app installations in my case), I saw the types definitions in the rest.js project was not exported. Instead I have to use the https://github.com/octokit/types.ts project and use helper methods to get the types.

Why is there such a roundabout and complicated setup just to access the types?

Why is there such a roundabout and complicated setup just to access the types?

:wave: @sayakmukhopadhyay - That’s a great question! While I’m neither an owner nor maintainer of octokit/rest.js (and thus, not able to provide a clear answer for this), perhaps it would be worth asking the respective owner(s) and maintainer(s) in the form of a new issue in that repository: https://github.com/octokit/rest.js/issues