@qrvey/formula-lang
Version:
QFormula support for qrvey projects
10 lines • 507 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getValidDataTypeParam = void 0;
const constants_1 = require("../constants");
function getValidDataTypeParam(args, validDataTypes) {
var _a;
return (((_a = args.find((_arg) => validDataTypes.includes(_arg.primitive))) === null || _a === void 0 ? void 0 : _a.primitive) || constants_1.AST_PRIMITIVES.UNKNOWN);
}
exports.getValidDataTypeParam = getValidDataTypeParam;
//# sourceMappingURL=getValidDataTypeParam.js.map