hypertune
Version:
[Hypertune](https://www.hypertune.com/) is the most flexible platform for feature flags, A/B testing, analytics and app configuration. Built with full end-to-end type-safety, Git-style version control and local, synchronous, in-memory flag evaluation. Opt
17 lines • 554 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = toDimensionTypeEnum;
const types_1 = require("../types");
function toDimensionTypeEnum(type) {
switch (type) {
case "discrete":
return types_1.DimensionType.Discrete;
case "continuous":
return types_1.DimensionType.Continuous;
default: {
const neverType = type;
throw new Error(`Unknown dimension type ${neverType}`);
}
}
}
//# sourceMappingURL=toDimensionTypeEnum.js.map