TypeScript: cannot turn off type definitions for one special library
TypeScript Version: 2.4.1
For example, I want to use a library from npm called awesome-lib
. This library already comes with a TypeScript type definition, but this one is deprecated and buggy. The library author does not update this file.
I tried to completely disable this type definition in my own file declarations.d.ts
in my project:
declare module 'awesome-lib';
Unfortunately, TypeScript reads the library's type definition first and throws some errors. Therefore, it is impossible for me to disable / hide this library for my project.
Does anyone know how to disable type checking for a custom one custom library?
+3
source to share