@softchef/cdk-iot-device-management
Version:
IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.
12 lines (11 loc) • 346 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizeBoolean = void 0;
const normalizeBoolean = (value) => {
if (typeof value === "boolean") {
const promisified = Promise.resolve(value);
return () => promisified;
}
return value;
};
exports.normalizeBoolean = normalizeBoolean;