beyond
Version:
The Full Stack Universal Typescript Framework
36 lines (27 loc) • 909 B
JavaScript
module.exports = class {
get container() {
return this.
}
get id() {
return this.
}
get started() {
return this.
}
get listeners() {
return this.
}
constructor(container) {
if (typeof container !== 'object') throw new Error('Invalid parameter container');
this.
const {path} = container;
if (typeof path !== 'string') throw new Error('Non-string provided as watch path');
if (!path) throw new Error('Empty string provided as watch path');
this.
}
start = () => this.
destroy = () => this.
}