typescriptifying
This commit is contained in:
17
dist/main.js
vendored
17
dist/main.js
vendored
@ -1,11 +1,18 @@
|
||||
class Test {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const logger = require("./log");
|
||||
const config = require("./config");
|
||||
// import { mqttHandler } from './MqttDispatcher'
|
||||
config.readConfig();
|
||||
class Dispatcher {
|
||||
constructor() {
|
||||
console.log("Test constructed");
|
||||
logger.info("Dispatcher starting");
|
||||
}
|
||||
exec() {
|
||||
console.log("Hello world");
|
||||
logger.info("Hello world");
|
||||
// mqttHandler.exec()
|
||||
}
|
||||
}
|
||||
const test = new Test();
|
||||
test.exec();
|
||||
const dispatcher = new Dispatcher();
|
||||
dispatcher.exec();
|
||||
//# sourceMappingURL=main.js.map
|
Reference in New Issue
Block a user