UNPKG

abstract-things

Version:

Base for building libraries that interact with physical things, such as IoT-devices

23 lines (18 loc) 416 B
'use strict'; const Thing = require('../thing'); const { duration } = require('../values'); module.exports = Thing.type(Parent => class extends Parent { /** * Mark appliance as a `light`. */ static get type() { return 'light'; } static get availableAPI() { return []; } }); /** * Default duration for transitions of things such as brightness and color. */ module.exports.DURATION = duration(400);