Prepare electron releases

This commit is contained in:
Thomas Nordquist
2019-01-01 23:48:35 +01:00
parent b2badfd43f
commit 5697b2daea
19 changed files with 10823 additions and 880 deletions

View File

@@ -1,11 +1,13 @@
interface InternalState {
import { EventEmitter } from 'events'
export interface DataSourceState {
connecting: boolean
connected: boolean
error?: Error
}
export class DataSourceState {
private state: InternalState = {
export class DataSourceStateMachine extends EventEmitter {
private state: DataSourceState = {
error: undefined,
connected: false,
connecting: false