persona-community-5/.pnpm-store/v3/files/19/b8cedaa2fe6e11a41d827a30948124eeb77058a3af64f6043bb74d11519ff36c9b8a2350fa96e9efb3ebc91b5ab38a88d8eb6b45cac6011364320af577a7fa
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

14 lines
567 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConstrainedTypeAtLocation = getConstrainedTypeAtLocation;
/**
* Resolves the given node's type. Will resolve to the type's generic constraint, if it has one.
*/
function getConstrainedTypeAtLocation(services, node) {
const nodeType = services.getTypeAtLocation(node);
const constrained = services.program
.getTypeChecker()
.getBaseConstraintOfType(nodeType);
return constrained ?? nodeType;
}
//# sourceMappingURL=getConstrainedTypeAtLocation.js.map