@genexus/web-standard-functions
Version:
GeneXus JavaScript standard functions library for web generators
12 lines • 457 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fixTypeToClass = void 0;
const fixTypeToClass = (sourceValue, targetValue) => {
if (typeof sourceValue === "string" && typeof targetValue === "number") {
// Numbers should need conversion from string to number type
return +sourceValue;
}
return sourceValue;
};
exports.fixTypeToClass = fixTypeToClass;
//# sourceMappingURL=fixTypeToClass.js.map