Files
agency/.pnpm-store/v3/files/1a/e0bba8fd76aeb89a95042b8e3180404991e24b247b52c841a2fbb24f071d7533b8e2dd8253186667e8eff176d04058c7bd6cde3e777a71fa20acb40f57d749
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

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));
}