typescriptifying

This commit is contained in:
Wolfgang Hottgenroth
2018-01-08 21:54:59 +01:00
parent c1fa639ae4
commit 9e39d74084
12 changed files with 607 additions and 105 deletions

View File

@ -1,14 +1,28 @@
class Test {
import * as logger from './log'
import * as config from './config'
// import { mqttHandler } from './MqttDispatcher'
config.readConfig()
class Dispatcher {
constructor() {
console.log("Test constructed")
logger.info("Dispatcher starting")
}
exec() : void {
console.log("Hello world")
logger.info("Hello world")
// mqttHandler.exec()
}
}
const test = new Test()
test.exec()
const dispatcher = new Dispatcher()
dispatcher.exec()