skip library check only in node_modules
There is no granular control over type checking, you either check all declaration files or none unfortunately. From compiler code:
export function skipTypeChecking(sourceFile: SourceFile, options: CompilerOptions) { // If skipLibCheck is enabled, skip reporting errors if file is a declaration file. // If skipDefaultLibCheck is enabled, skip reporting errors if file contains a // '/// <reference no-default-lib="true"/>' directive. return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib;}