Files
SnowLuma/.pnpm-store/v11/files/1a/e0bba8fd76aeb89a95042b8e3180404991e24b247b52c841a2fbb24f071d7533b8e2dd8253186667e8eff176d04058c7bd6cde3e777a71fa20acb40f57d749
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08: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));
}