Closed
Description
TypeScript Version: 2.4.1
For example I want to consume a library from npm called awesome-lib
. This library already ships with a TypeScript type definition but this one is outdated and buggy. The author of the library doesn't update this one.
I've tried to disable that type definition completely in my own declarations.d.ts
file in my project:
declare module 'awesome-lib';
Unfortunately TypeScript reads first the type definition in the library and throws some errors. So it is not possible for me to disable / hide this library for my project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment