Bundle type defs for a package in node_modules

I want to send type definitions for a package that is present in my node_modules folder to the frontend so that i can use it with monaco editor. The problem is how can i bundle all the types of the module into a single file. Sometimes a package has external type dependencies too, how can i handle that.
1 Reply
fero.xd
fero.xdOP7mo ago
like express type defs have @types/express-server-core as a dependency
Want results from more Discord servers?
Add your server