It seems that the TypeScript compiler always includes lib.d.ts or lib.es6.d.ts (depending on the purpose of the compiler).
Our application has a WebSocket class that is already defined in lib.d.ts We run our application under Node.js, and not in a web browser, so we really do not need all the definitions from lib.d.ts Instead, lib.core.d.ts would be enough for us (and, of course, it would resolve the WebSocket conflict).
Can I tell the TypeScript compiler which global type definition file to use?
Michel krämer
source share