Files
memecoin-botV2/.pnpm-store/v10/files/1a/e0bba8fd76aeb89a95042b8e3180404991e24b247b52c841a2fbb24f071d7533b8e2dd8253186667e8eff176d04058c7bd6cde3e777a71fa20acb40f57d749

12 lines
487 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.typeDeclaredInLib = typeDeclaredInLib;
function typeDeclaredInLib(declarationFiles, program) {
// Assertion: The type is not an error type.
// Intrinsic type (i.e. string, number, boolean, etc) - Treat it as if it's from lib.
if (declarationFiles.length === 0) {
return true;
}
return declarationFiles.some(declaration => program.isSourceFileDefaultLibrary(declaration));
}