diff --git a/src/app/fsmupdate.service.ts b/src/app/fsmupdate.service.ts index 2a107fd..6423ca5 100644 --- a/src/app/fsmupdate.service.ts +++ b/src/app/fsmupdate.service.ts @@ -1,12 +1,7 @@ import { Injectable } from '@angular/core'; import { WebSocketService } from './websocket.service'; - -class FSMUpdate { - current_state: string; - valid_transitions: object; -} - +import { FSMUpdate } from './fsmupdate'; @Injectable() export class FSMUpdateService { diff --git a/src/app/fsmupdate.ts b/src/app/fsmupdate.ts new file mode 100644 index 0000000..bf658ac --- /dev/null +++ b/src/app/fsmupdate.ts @@ -0,0 +1,4 @@ +export class FSMUpdate { + current_state: string; + valid_transitions: object; +}