Skip to content

Commit 2747296

Browse files
author
hyperandroid
committed
Improved documentation.
Improved Session lifecycle: create, start.
1 parent 954fabb commit 2747296

File tree

7 files changed

+243
-63
lines changed

7 files changed

+243
-63
lines changed

automata.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ declare module FSM {
1818
addProperty( key:string, value:any );
1919
removeProperty( key:string );
2020
getProperty( key:string ) : any;
21+
start( callback:ConsumeCallback ) : void;
2122
}
2223

2324
class GuardException {
@@ -54,7 +55,7 @@ declare module Automata {
5455

5556
export function registerFSM( object:any );
5657
export function registerFDA( object:any );
57-
export function createSession( fda_name : string, logic:any, callback?:FSM.ConsumeCallback ) : FSM.Session;
58+
export function createSession( fda_name : string, logic:any ) : FSM.Session;
5859
export function newGuardException( message : string ) : FSM.GuardException;
5960
export function newSessionListener( obj : any ) : FSM.SessionListener;
6061

0 commit comments

Comments
 (0)