@constructorfleet/ultimate-govee
Version:
Library for interacting with Govee devices written in Typescript.
13 lines • 696 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IoTChannelConfigEnabledProvider = exports.InjectEnabled = exports.IoTChannelConfigEnabledKey = void 0;
const common_1 = require("@nestjs/common");
const iot_channel_types_1 = require("./iot-channel.types");
exports.IoTChannelConfigEnabledKey = 'Config.IoTChannel.Enabled';
exports.InjectEnabled = (0, common_1.Inject)(exports.IoTChannelConfigEnabledKey);
exports.IoTChannelConfigEnabledProvider = {
provide: exports.IoTChannelConfigEnabledKey,
inject: [iot_channel_types_1.MODULE_OPTIONS_TOKEN],
useFactory: (options) => options.enabled ?? false,
};
//# sourceMappingURL=iot-channel.providers.js.map