UNPKG

abstract-things

Version:

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

13 lines (8 loc) 222 B
'use strict'; const Thing = require('../thing'); const Controller = require('./controller'); module.exports = Thing.type(Parent => class extends Parent.with(Controller) { static get type() { return 'button'; } });