UNPKG

abstract-things

Version:

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

13 lines (10 loc) 215 B
'use strict'; const Thing = require('../thing'); /** * Type for marking a thing as a Humidifier. */ module.exports = Thing.type(Parent => class extends Parent { static get type() { return 'humidifer'; } });