@nestjs/graphql
Version:
Nest - modern, fast, powerful node.js web framework (@graphql)
14 lines (13 loc) • 380 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isPipe = isPipe;
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
function isPipe(value) {
if (!value) {
return false;
}
if ((0, shared_utils_1.isFunction)(value)) {
return true;
}
return (0, shared_utils_1.isFunction)(value.transform);
}
;